Page 1 of 1

Exclude based on filetype?

Posted: 16 Apr 2017, 10:37
by Spacejamsies
I'm wondering if there exist some sort of exclude function based on filetype?

Now I'm getting duplicates of TV-episodes with both .mp4 and .mkv, I'd like to exclude/delete .mp4 files (especially when the .mkv version is better). My storage is precious and I don't like doing anything manual..

Here is my filebot command that I use today:

Code: Select all

filebot -script fn:amc --output $DESTINATION --log-file $LOGDIR/filebot-amc.log --action move --conflict auto "$MEDIA_PATH" --def excludeList=$LOGDIR/filebot-history.log clean=y unsorted=y "ut_kind=$tag" "seriesFormat=$TV_FORMAT" "animeFormat=$ANIME_FORMAT" "movieFormat=$MOVIE_FORMAT"
As you guys probably understand that command is part of a larger script, so I know I can fix the issue by deleting .mp4 files before filebot run, but thought I should check first if this was something filebot supported out of the box? My google-fu has not been strong enough to find something though..

Re: Exclude based on filetype?

Posted: 16 Apr 2017, 11:14
by rednoah
1.
The amc script can exclude files from processing using the --def ignore regex option:

Code: Select all

--def ignore='[.](avi|mp4)$'

2.
You can use the duplicates script for logical duplicate detection and for deleting the lower quality duplicates:
viewtopic.php?f=4&t=5#p23171