I have a little issue with Filebot concerning certains files that does not match on TheTVDB due to the release group name being present in the title of the torrent.
To put the context I have a seedbox with rtorrent installed and once a file is downloaded it automatically call the amc script that launch filebot. You can see the code of rtorrent.rc here :
Code: Select all
method.set_key = event.download.finished,filebot,"execute.nothrow={.filebot/scripts-enabled/rtorrent-postprocess.sh,$d.get_base_path=,$d.get_name=,$d.get_custom1=}"
Code: Select all
filebot -script /opt/filebot/scripts/amc.groovy \
--output "$HOME/media" \
-non-strict --lang fr --encoding utf8 --log all --log-file amc-rtorrent.log --action hardlink --conflict override \
--def artwork=false "ut_kind=multi" "ut_dir=$TORRENT_PATH" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" subtitles=$SUBLANG \
extractFolder="$HOME/files/_extracted" music=$MUSIC skipExtract=$SKIP_EXTRACT &
Code: Select all
Run script [/opt/filebot/scripts/amc.groovy] at [Mon Jul 08 22:12:21 CEST 2019]
Parameter: artwork = false
Parameter: ut_kind = multi
Parameter: ut_dir = /home27/monsieurjf/files/[Natsumi no Sekai] Vinland Saga - 03 VOSTFR [1080p AAC].mp4
Parameter: ut_title = [Natsumi no Sekai] Vinland Saga - 03 VOSTFR [1080p AAC].mp4
Parameter: ut_label = TV
Parameter: subtitles = fr
Parameter: extractFolder = /home27/monsieurjf/files/_extracted
Parameter: music = y
Parameter: skipExtract = n
Input: /home27/monsieurjf/files/[Natsumi no Sekai] Vinland Saga - 03 VOSTFR [1080p AAC].mp4
Group: [tvs:natsumi no sekai vinland saga] => [[Natsumi no Sekai] Vinland Saga - 03 VOSTFR [1080p AAC].mp4]
Get [French] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /home27/monsieurjf/files/[Natsumi no Sekai] Vinland Saga - 03 VOSTFR [1080p AAC].mp4
Rename episodes using [TheTVDB]
Auto-detected query: [natsumi no sekai vinland saga]
Failed to fetch episode data: [natsumi no sekai vinland saga]
CmdlineException: Failed to match files to episode data
Finished without processing any files
Failure (°_°)
I've also heard about :
- --q to force a show title but I'm not sure it applies to my setup because I use this script for multiple shows.
- --filter "age < 7" but I don't only download recent anime/tv show so it might not work.
Is there any way to remove everything under square brackets using regex for example ?
Thank you for your help,
MrJF.