Exclude based on filetype?

Support for Ubuntu and other Desktop Linux distributions
Post Reply
Spacejamsies
Posts: 1
Joined: 11 Apr 2017, 13:21

Exclude based on filetype?

Post 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..
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude based on filetype?

Post 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
:idea: Please read the FAQ and How to Request Help.
Post Reply