Collision between two series

Any questions? Need some help?
Post Reply
Matt
Posts: 9
Joined: 22 Aug 2018, 19:19

Collision between two series

Post by Matt »

I have a strange issue of collision between two series.

Command used in CLI :

Code: Select all

filebot -rename --db TheTVDB --order Airdate --action test --conflict skip --format "{n}/{'S'+s}/{s00e00} {fn}" -non-strict
If I rename the first serie alone, it's fine:

Code: Select all

Rename episodes using [TheTVDB]
Auto-detected query: [Boku no Hero Academia]
Fetching episode data for [My Hero Academia]
Skipped [/media/animes/Downloads/[HorribleSubs] Boku no Hero Academia - 58 [1080p].mkv] because [/media/animes/Watching/My Hero Academia/S3/S03E20 [HorribleSubs] Boku no Hero Academia - 58 [1080p].mkv] already exists
Skipped [/media/animes/Downloads/[HorribleSubs] Boku no Hero Academia - 59 [1080p].mkv] because [/media/animes/Watching/My Hero Academia/S3/S03E21 [HorribleSubs] Boku no Hero Academia - 59 [1080p].mkv] already exists
Skipped [/media/animes/Downloads/[HorribleSubs] Boku no Hero Academia - 60 [1080p].mkv] because [/media/animes/Watching/My Hero Academia/S3/S03E22 [HorribleSubs] Boku no Hero Academia - 60 [1080p].mkv] already exists
Skipped [/media/animes/Downloads/[HorribleSubs] Boku no Hero Academia - 61 [1080p].mkv] because [/media/animes/Watching/My Hero Academia/S3/S03E23 [HorribleSubs] Boku no Hero Academia - 61 [1080p].mkv] already exists
Processed 0 files
But if the serie major 2nd is renamed at the same time:
[TEST] from [/media/animes/Downloads/[HorribleSubs] Boku no Hero Academia - 58 [1080p].mkv] to [/media/animes/Watching/Major/S4/S04E15 [HorribleSubs] Boku no Hero Academia - 58 [1080p].mkv]

Code: Select all

Rename episodes using [TheTVDB]
Auto-detected query: [Boku no Hero Academia, Major, major 2nd]
Fetching episode data for [My Hero Academia]
Fetching episode data for [Major]
Fetching episode data for [Major (2014)]
Fetching episode data for [Major Dad]
Fetching episode data for [Major 2nd]
Fetching episode data for [Major Lazer]
[TEST] from [/media/animes/Downloads/[HorribleSubs] Boku no Hero Academia - 58 [1080p].mkv] to [/media/animes/Watching/Major/S4/S04E15 [HorribleSubs] Boku no Hero Academia - 58 [1080p].mkv]
Skipped [/media/animes/Downloads/[HorribleSubs] Boku no Hero Academia - 59 [1080p].mkv] because [/media/animes/Watching/My Hero Academia/S3/S03E21 [HorribleSubs] Boku no Hero Academia - 59 [1080p].mkv] already exists
Skipped [/media/animes/Downloads/[HorribleSubs] Boku no Hero Academia - 60 [1080p].mkv] because [/media/animes/Watching/My Hero Academia/S3/S03E22 [HorribleSubs] Boku no Hero Academia - 60 [1080p].mkv] already exists
Skipped [/media/animes/Downloads/[HorribleSubs] Boku no Hero Academia - 61 [1080p].mkv] because [/media/animes/Watching/My Hero Academia/S3/S03E23 [HorribleSubs] Boku no Hero Academia - 61 [1080p].mkv] already exists
Skipped [/media/animes/Downloads/[HorribleSubs] Major 2nd - 21 [1080p].mkv] because [/media/animes/Watching/Major 2nd/S1/S01E21 [HorribleSubs] Major 2nd - 21 [1080p].mkv] already exists
Skipped [/media/animes/Downloads/[HorribleSubs] Major 2nd - 22 [1080p].mkv] because [/media/animes/Watching/Major 2nd/S1/S01E22 [HorribleSubs] Major 2nd - 22 [1080p].mkv] already exists
Skipped [/media/animes/Downloads/[HorribleSubs] Major 2nd - 23 [1080p].mkv] because [/media/animes/Watching/Major 2nd/S1/S01E23 [HorribleSubs] Major 2nd - 23 [1080p].mkv] already exists
Skipped [/media/animes/Downloads/[HorribleSubs] Major 2nd - 24 [1080p].mkv] because [/media/animes/Watching/Major 2nd/S1/S01E24 [HorribleSubs] Major 2nd - 24 [1080p].mkv] already exists
Processed 1 files
Any way to solve that?
My version is from Ubuntu:

Code: Select all

FileBot 4.8.2 (r5789) / Java(TM) SE Runtime Environment 10.0.2 / Linux 4.15.0-34-generic (amd64)
Matt
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Collision between two series

Post by rednoah »

Converting AniDB to TheTVDB metadata may not always straight forward and can be quite tricky.

:idea: If you process multiple shows together in the same folder, the files can affect each other. No idea what's going on in this case. The deciding factor is probably that AniDB name "Boku no" and TheTVDB name "My" are different. Presumably, both the correct and incorrect match are Absolute Episode 58, so the bad match is likely caused by bad luck with generic string similarity same how favoring one over the other.

Here's some general tips:
viewtopic.php?f=3&t=2769

Here's some related examples:
viewtopic.php?f=8&t=6226#p35914


EDIT:

We might gain some interesting insights if we run the same test with debug logging enabled:
viewtopic.php?f=3&t=3913
:idea: Please read the FAQ and How to Request Help.
Matt
Posts: 9
Joined: 22 Aug 2018, 19:19

Re: Collision between two series

Post by Matt »

From the debug, I guess it's because of Major episode name (Hero). I cannot post the debug log, it's too big.

Is there a way to ignore trying to get the episode name from the filename? In my case none of the files includes it.
It would also be great to avoid mixing series together, but I understand that it can help to identify files, is AMC script working the same way?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Collision between two series

Post by rednoah »

1.
Yes, unfortunate series name differences, unfortunate other series in the same folder with unfortunate exact title match with episode of the first series, that is bad luck indeed. The amc script does a lot of preprocessing / grouping before processing each group individually, and that can help avoid these kinds of issues.


2.
Alternatively, a simple age filter like --filter "age < 30" can work wonders on recently aired episodes:

Code: Select all

$ filebot -rename . --action test --db TheTVDB -non-strict --filter "age < 30"
Rename episodes using [TheTVDB]
Auto-detected query: [Boku no Hero Academia, Major, major 2nd]
Fetching episode data for [My Hero Academia]
Fetching episode data for [Major]
Fetching episode data for [Major (2014)]
Fetching episode data for [Major Dad]
Fetching episode data for [Major 2nd]
Fetching episode data for [Major Lazer]
Apply filter [age < 30] on [382] items
Include [My Hero Academia - 3x20 - Special Episode - Save the World with Love!]
Include [My Hero Academia - 3x21 - What's the Big Idea?]
Include [My Hero Academia - 3x22 - A Talk About Your Quirk]
Include [My Hero Academia - 3x23 - Deku vs. Kacchan, Part 2]
Include [My Hero Academia - 3x24 - A Season for Encounters]
Include [Major 2nd - 1x21 - Daigo and Hikaru]
Include [Major 2nd - 1x22 - Ace playing board]
Include [Major 2nd - 1x23 - The Hit of Destiny]
Include [Major 2nd - 1x24 - No Way...!]
Include [Major 2nd - 1x25 - Promise]
[TEST] from [[HorribleSubs] Boku no Hero Academia - 58 [1080p].mkv] to [My Hero Academia - 3x20 - Special Episode - Save the World with Love!.mkv]
[TEST] from [[HorribleSubs] Major 2nd - 21 [1080p].mkv] to [Major 2nd - 1x21 - Daigo and Hikaru.mkv]
Processed 2 files
:arrow: viewtopic.php?f=3&t=2127
:idea: Please read the FAQ and How to Request Help.
Post Reply