Problems with "def ignore"
Posted: 12 Oct 2016, 06:54
I have been struggling with the "def ignore" feature of Filebot. I have a mildly complex requirement, namely I want to use hardlinking for regular MKV files, and copy for subtitles.
The reason is that for releases that include subtitle files, hardlinking can cause a problem. When a repack or proper is released and automatically downloaded (by Sonarr for example), there's a chance it comes without subtitles. This means you will end up with two release folders in your torrent client and download folder, one with hardlinked subtitles, and one with hardlinked MKV. This is messy, and prevents automatic cleanup of no longer hardlinked releases.
My intention is to fix that by running Filebot twice on each download, hardlinking MKV and copying subs.
I have tried several combinations of "def ignore", as there's different examples to be found, none of them are working for me, latest version I am trying is this:
Have also tried:
etc...
All fail, Filebot ends up processing the MVK file anyway:
I have one bonus question, is this intended behaviour when subtitle download is disabled:
So basically not disabling subtitle download, just providing a non-existing language, and thus downloading no subs, right? Just don't like errors in my output 
The reason is that for releases that include subtitle files, hardlinking can cause a problem. When a repack or proper is released and automatically downloaded (by Sonarr for example), there's a chance it comes without subtitles. This means you will end up with two release folders in your torrent client and download folder, one with hardlinked subtitles, and one with hardlinked MKV. This is messy, and prevents automatic cleanup of no longer hardlinked releases.
My intention is to fix that by running Filebot twice on each download, hardlinking MKV and copying subs.
I have tried several combinations of "def ignore", as there's different examples to be found, none of them are working for me, latest version I am trying is this:
Code: Select all
--def "ignore=[.]nfo|[.]mkv|[.]mp4"
Code: Select all
--def "ignore=.nfo|.mkv|.mp4"
--def "ignore=nfo|mkv|mp4"
--def ignore="nfo|mkv|mp4"
--def ignore=".nfo|.mkv|.mp4"
--def ignore="*.nfo|*.mkv|*.mp4"
All fail, Filebot ends up processing the MVK file anyway:
Code: Select all
Parameter: ignore = [.]nfo|[.]mkv|[.]mp4
Input: /mnt/storage/torrents/downloads/MOVIE_ABOUT_UBUNTU_TORRENT.mkv
Group: [:] => [MOVIE_ABOUT_UBUNTU_TORRENT.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /mnt/storage/torrents/downloads/MOVIE_ABOUT_UBUNTU_TORRENT.mkv
Processing 1 unsorted files
[COPY] Rename [/mnt/storage/torrents/downloads/MOVIE_ABOUT_UBUNTU_TORRENT.mkv] to [/mnt/storage/media/Unsorted/MOVIE_ABOUT_UBUNTU_TORRENT.mkv]
Code: Select all
Illegal language code: n
