How to deal with Anime mismatches in the amc script?
Posted: 14 Dec 2020, 10:59
I have a file named
and it appears that the parenthesis around "The Final Season" are causing the file to be incorrectly matched, as shown:
As shown it incorrectly matches the file to
As opposed to
However when I remove the parentheses around "The Final Season" I get a different result:
This gives me the result
Which is much closer to the desired outcome, albeit with "Final Season" appended to it but at least the Season/Episode combination is correct.
Not sure what it is that I'm doing wrong here but I would appreciate a push in the right direction.
Code: Select all
[SubsPlease] Shingeki no Kyojin (The Final Season) - 60 (1080p) [11F4C2A5].mkv
Code: Select all
PS E:\FilebotTest\output> filebot.exe --log FINEST --lang English --action TEST --output "E:\Download" -script fn:amc -non-strict "E:\FilebotTest" --def animeFormat="{n}\Season {s.pad(2)}\{n} - {s00e00}" --mapper AnimeList.TheTVDB
Run script [fn:amc] at [Mon Dec 14 21:31:20 AEDT 2020]
Parameter: animeFormat = {n}\Season {s.pad(2)}\{n} - {s00e00}
Argument[0]: E:\FilebotTest
Input: E:\FilebotTest\[SubsPlease] Shingeki no Kyojin (The Final Season) - 60 (1080p) [11F4C2A5].mkv
Group: {Anime=shingeki no kyojin} => [[SubsPlease] Shingeki no Kyojin (The Final Season) - 60 (1080p) [11F4C2A5].mkv]
Rename episodes using [AniDB] with [Absolute]
Lookup via [Shingeki no Kyojin]
Fetching episode data for [Shingeki no Kyojin]
Fetching episode data for [Shingeki no Kyojin Season 2]
Fetching episode data for [Shingeki no Kyojin Season 3]
Fetching episode data for [Shingeki no Kyojin OAD]
Fetching episode data for [Shingeki no Kyojin Season 3 (2019)]
Apply mapper [AnimeList.TheTVDB] on [94] episodes
...
Reverse Map [Attack on Titan - Special 22 - Lost in the Cruel World] to [Shingeki no Kyojin OAD - 08 - Lost in the Cruel World]
[TEST] from [E:\FilebotTest\[SubsPlease] Shingeki no Kyojin (The Final Season) - 60 (1080p) [11F4C2A5].mkv] to [E:\Download\Shingeki no Kyojin OAD\Season\Shingeki no Kyojin OAD - S00E22.mkv]
Processed 1 file
Code: Select all
Shingeki no Kyojin OAD - S00E22.mkv
Code: Select all
Attack on Titan - S04E01.mkv
Code: Select all
PS E:\FilebotTest\output> filebot.exe --log FINEST --lang English --action TEST --output "E:\Download" -script fn:amc -non-strict "E:\FilebotTest" --def animeFormat="{n}\Season {s.pad(2)}\{n} - {s00e00}" --mapper AnimeList.TheTVDB
Run script [fn:amc] at [Mon Dec 14 21:34:38 AEDT 2020]
Parameter: animeFormat = {n}\Season {s.pad(2)}\{n} - {s00e00}
Argument[0]: E:\FilebotTest
Input: E:\FilebotTest\[SubsPlease] Shingeki no Kyojin The Final Season - 60 (1080p) [11F4C2A5].mkv
Group: {Anime=shingeki no kyojin the final season} => [[SubsPlease] Shingeki no Kyojin The Final Season - 60 (1080p) [11F4C2A5].mkv]
Rename episodes using [AniDB] with [Absolute]
Lookup via [Shingeki no Kyojin The Final Season]
Fetching episode data for [Shingeki no Kyojin: The Final Season]
Fetching episode data for [Shingeki no Kyojin Season 2]
Fetching episode data for [Shingeki no Kyojin Season 3]
Fetching episode data for [Shingeki no Kyojin Season 3 (2019)]
Fetching episode data for [Shingeki no Kyojin]
Apply mapper [AnimeList.TheTVDB] on [90] episodes
...
Reverse Map [Attack on Titan - 4x01] to [Attack on Titan Final Season - 01 - The Other Side of the Sea]
[TEST] from [E:\FilebotTest\[SubsPlease] Shingeki no Kyojin The Final Season - 60 (1080p) [11F4C2A5].mkv] to [E:\Download\Attack on Titan Final Season\Season 04\Attack on Titan Final Season - S04E01.mkv]
Processed 1 file
Code: Select all
Attack on Titan Final Season - S04E01.mkv
Not sure what it is that I'm doing wrong here but I would appreciate a push in the right direction.