How to use --filter?
Posted: 20 Mar 2017, 07:30
This is very helpful!
I had a problem with one short series (only 9 episodes) matching multiple series in the rename.
The show is called "Profit" (a 1996 show) but some episodes were matching a different show called "The Profit" (a 2013 show)
This is a one-time job, so I just added a filter to the rename command, rather than create an exclude file. I put into the filter all of the show names that the TheTVDB query matched.
This fixed the issue, and all episodes matched the correct show
Now, I could have renamed them manually, but now I know how to fix this issue on much larger batch jobs for longer series.
Thanks for adding this feature!
I had a problem with one short series (only 9 episodes) matching multiple series in the rename.
The show is called "Profit" (a 1996 show) but some episodes were matching a different show called "The Profit" (a 2013 show)
Code: Select all
root@0ba7c9b32e04:/input/tv# filebot -rename Profit/* --q "Profit" -non-strict --db thetvdb --action test --format "{plex} [{vf}, {vc}, {ac}, {af}]" --output=/output
Rename episodes using [TheTVDB]
Fetching episode data for [The Profit]
Fetching episode data for [Profit]
Fetching episode data for [Profiling]
Fetching episode data for [Profiler]
[TEST] Rename [/input/tv/Profit/Profit - Complete Series/Profit.S01E01-02.DVDRIP.XVID - Pilot.avi] to [/output/TV Shows/The Profit/Season 01/The Profit - S01E01-E02 - Car Cash & Maarse Florist [360p, XviD, MP3, 2ch].avi]
[TEST] Rename [/input/tv/Profit/Profit - Complete Series/Profit.S01E03.DVDRIP.XVID - Hero.avi] to [/output/TV Shows/The Profit/Season 01/The Profit - S01E03 - Planet Popcorn [360p, XviD, MP3, 2ch].avi]
[TEST] Rename [/input/tv/Profit/Profit - Complete Series/Profit.S01E04.DVDRIP.XVID - Sykes.avi] to [/output/TV Shows/The Profit/Season 01/The Profit - S01E04 - Eco-Me [480p, XviD, MP3, 2ch].avi]
[TEST] Rename [/input/tv/Profit/Profit - Complete Series/Profit.S01E05.DVDRIP.XVID - Healing.avi] to [/output/TV Shows/The Profit/Season 01/The Profit - S01E05 - LA Dogworks [480p, XviD, MP3, 2ch].avi]
[TEST] Rename [/input/tv/Profit/Profit - Complete Series/Profit.S01E06.DVDRIP.XVID - Cupid.avi] to [/output/TV Shows/The Profit/Season 01/The Profit - S01E06 - Mr. Green Tea [360p, XviD, MP3, 2ch].avi]
[TEST] Rename [/input/tv/Profit/Profit - Complete Series/Profit.S01E07.DVDRIP.XVID - Chinese Box.avi] to [/output/TV Shows/Profit/Season 01/Profit - S01E07 - Chinese Box [480p, XviD, MP3, 2ch].avi]
[TEST] Rename [/input/tv/Profit/Profit - Complete Series/Profit.S01E08.DVDRIP.XVID - Security.avi] to [/output/TV Shows/Profit/Season 01/Profit - S01E08 - Security [480p, XviD, MP3, 2ch].avi]
[TEST] Rename [/input/tv/Profit/Profit - Complete Series/Profit.S01E09.DVDRIP.XVID - Forgiveness.avi] to [/output/TV Shows/Profit/Season 01/Profit - S01E09 - Forgiveness [480p, XviD, MP3, 2ch].avi]
Processed 8 files
Code: Select all
--filter "n != /The Profit/ && n != /Profiling/ && n != /Profiler/"
Code: Select all
root@0ba7c9b32e04:/input/tv# filebot -rename Profit/* --q "Profit" -non-strict --db thetvdb --filter "n != /The Profit/ && n != /Profiling/ && n != /Profiler/" --action test --format "{plex} [{vf}, {vc}, {ac}, {af}]" --output=/output
Rename episodes using [TheTVDB]
Fetching episode data for [The Profit]
Fetching episode data for [Profit]
Fetching episode data for [Profiling]
Fetching episode data for [Profiler]
Apply Filter: {n != /The Profit/ && n != /Profiling/ && n != /Profiler/}
Include [Profit - 1x01 - Pilot (1)]
Include [Profit - 1x02 - Pilot (2)]
Include [Profit - 1x03 - Hero]
Include [Profit - 1x04 - Sykes]
Include [Profit - 1x05 - Healing]
Include [Profit - 1x06 - Cupid]
Include [Profit - 1x07 - Chinese Box]
Include [Profit - 1x08 - Security]
Include [Profit - 1x09 - Forgiveness]
[TEST] Rename [/input/tv/Profit/Profit - Complete Series/Profit.S01E01-02.DVDRIP.XVID - Pilot.avi] to [/output/TV Shows/Profit/Season 01/Profit - S01E01-E02 - Pilot [360p, XviD, MP3, 2ch].avi]
[TEST] Rename [/input/tv/Profit/Profit - Complete Series/Profit.S01E03.DVDRIP.XVID - Hero.avi] to [/output/TV Shows/Profit/Season 01/Profit - S01E03 - Hero [360p, XviD, MP3, 2ch].avi]
[TEST] Rename [/input/tv/Profit/Profit - Complete Series/Profit.S01E04.DVDRIP.XVID - Sykes.avi] to [/output/TV Shows/Profit/Season 01/Profit - S01E04 - Sykes [480p, XviD, MP3, 2ch].avi]
[TEST] Rename [/input/tv/Profit/Profit - Complete Series/Profit.S01E05.DVDRIP.XVID - Healing.avi] to [/output/TV Shows/Profit/Season 01/Profit - S01E05 - Healing [480p, XviD, MP3, 2ch].avi]
[TEST] Rename [/input/tv/Profit/Profit - Complete Series/Profit.S01E06.DVDRIP.XVID - Cupid.avi] to [/output/TV Shows/Profit/Season 01/Profit - S01E06 - Cupid [360p, XviD, MP3, 2ch].avi]
[TEST] Rename [/input/tv/Profit/Profit - Complete Series/Profit.S01E07.DVDRIP.XVID - Chinese Box.avi] to [/output/TV Shows/Profit/Season 01/Profit - S01E07 - Chinese Box [480p, XviD, MP3, 2ch].avi]
[TEST] Rename [/input/tv/Profit/Profit - Complete Series/Profit.S01E08.DVDRIP.XVID - Security.avi] to [/output/TV Shows/Profit/Season 01/Profit - S01E08 - Security [480p, XviD, MP3, 2ch].avi]
[TEST] Rename [/input/tv/Profit/Profit - Complete Series/Profit.S01E09.DVDRIP.XVID - Forgiveness.avi] to [/output/TV Shows/Profit/Season 01/Profit - S01E09 - Forgiveness [480p, XviD, MP3, 2ch].avi]
Processed 8 files
Thanks for adding this feature!