Rename anim using TVDB

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

Rename anim using TVDB

Post by pax0707 »

Is there a way to make the script rename anime using TVDB?

I recently started watching some anime and Plex is having some issues with episodes not in s00e00 format.


Regards
User avatar
rednoah
The Source
Posts: 23950
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename anim using TVDB

Post by rednoah »

Yes. As long as TheTVDB has all the episode data. If episode data contains SxE and absolute numbers you can even convert Absolute to SxE if you're lucky. ;)

Otherwise you can always do the good old (1) Rename with AniDB to get Episode Titles for Absolute Numbers and then (2) Rename with TheTVDB and match by Episode Title and add SxE.
:idea: Please read the FAQ and How to Request Help.
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

Re: Rename anim using TVDB

Post by pax0707 »

How?
;- )=
User avatar
rednoah
The Source
Posts: 23950
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename anim using TVDB

Post by rednoah »

Well, there's a script that does the Original/Absolute -> AniDB/Absolute/Title -> TheTVDB/SxE/Title process that you can have a look for reference:
https://github.com/filebot/scripts/blob ... sxe.groovy

The best solution is (if it's not working out of the box) to add all the missing information (like absolute number information) to TheTVDB and then try again a few days later.

Also you can send me screenshots or logs, I case we're talking apples and oranges. :P
:idea: Please read the FAQ and How to Request Help.
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

Re: Rename anim using TVDB

Post by pax0707 »

Let me try rephrasing it.

Is there a command line argument to force the script to parse anime using TheTVDB? Treat it like normal series.
I've been playing around and edited local amc script with edited line 344.

Code: Select all

		                       : [name:group.anime, format:format.anime, db:'TheTVDB']
But that way I loose any new updates you to to amc script.


From what I've tested TVDB works fine for new anime I'm watching.

Code: Select all

Parameter: animeFormat = D:/Test/Out/{n} - {s00e00} - {t}
Argument: D:\Test\In
Input: D:\Test\In\[HorribleSubs] Fate Stay Night - Unlimited Blade Works - 14 [480p].mkv
Input: D:\Test\In\[HorribleSubs] Fate Stay Night - Unlimited Blade Works - 15 [480p].mkv
Input: D:\Test\In\[HorribleSubs] Fate Stay Night - Unlimited Blade Works - 16 [480p].mkv
Input: D:\Test\In\[HorribleSubs] Seraph of the End - 03 [480p].mkv
Input: D:\Test\In\[HorribleSubs] Seraph of the End - 04 [480p].mkv
Input: D:\Test\In\[Underwater] Knights of Sidonia S2 - The Ninth Planet Crusade - 01 (720p) [A631962C].mkv
Input: D:\Test\In\[Underwater] Knights of Sidonia S2 - The Ninth Planet Crusade - 02 (720p) [16383B2D].mkv
Input: D:\Test\In\[Underwater] Knights of Sidonia S2 - The Ninth Planet Crusade - 03v2 (720p) [A07674AE].mkv
Group: [anime:fate stay night unlimited blade works] => [[HorribleSubs] Fate Stay Night - Unlimited Blade Works - 14 [480p].mkv, [HorribleSubs] Fate Stay Night - Unlimited Blade Works - 15 [480p].mkv, [HorribleSubs] Fate Stay Night - Unlimited Blade Works - 16 [480p].mkv]
Group: [anime:seraph of the end] => [[HorribleSubs] Seraph of the End - 03 [480p].mkv, [HorribleSubs] Seraph of the End - 04 [480p].mkv]
Group: [anime:knights of sidonia] => [[Underwater] Knights of Sidonia S2 - The Ninth Planet Crusade - 01 (720p) [A631962C].mkv, [Underwater] Knights of Sidonia S2 - The Ninth Planet Crusade - 02 (720p) [16383B2D].mkv, [Underwater] Knights of Sidonia S2 - The Ninth Planet Crusade - 03v2 (720p) [A07674AE].mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Fate Stay Night Unlimited Blade Works]
Fetching episode data for [Fate/Stay Night: Unlimited Blade Works]
Stripping invalid characters from new path: D:/Test/Out/Fate Stay Night: Unlimited Blade Works - S02E02 - Princess of Colchis
Stripping invalid characters from new path: D:/Test/Out/Fate Stay Night: Unlimited Blade Works - S02E03 - Confrontation of Myth
Stripping invalid characters from new path: D:/Test/Out/Fate Stay Night: Unlimited Blade Works - S02E04 - Winter Days, the Form Wishes Take
Skipped [D:\Test\In\[HorribleSubs] Fate Stay Night - Unlimited Blade Works - 14 [480p].mkv] because [D:\Test\Out\Fate Stay Night Unlimited Blade Works - S02E02 - Princess of Colchis.mkv] already exists
[COPY] Rename [D:\Test\In\[HorribleSubs] Fate Stay Night - Unlimited Blade Works - 15 [480p].mkv] to [D:\Test\Out\Fate Stay Night Unlimited Blade Works - S02E03 - Confrontation of Myth.mkv]
Skipped [D:\Test\In\[HorribleSubs] Fate Stay Night - Unlimited Blade Works - 16 [480p].mkv] because [D:\Test\Out\Fate Stay Night Unlimited Blade Works - S02E04 - Winter Days, the Form Wishes Take.mkv] already exists
Processed 3 files
Rename episodes using [TheTVDB]
Auto-detected query: [Seraph of the End]
Fetching episode data for [Seraph of the End]
Stripping invalid characters from new path: D:/Test/Out/Seraph of the End: Vampire Reign - S01E03 - The Demon in Your Heart
Stripping invalid characters from new path: D:/Test/Out/Seraph of the End: Vampire Reign - S01E04 - Vampire Mikaela
Skipped [D:\Test\In\[HorribleSubs] Seraph of the End - 03 [480p].mkv] because [D:\Test\Out\Seraph of the End Vampire Reign - S01E03 - The Demon in Your Heart.mkv] already exists
Skipped [D:\Test\In\[HorribleSubs] Seraph of the End - 04 [480p].mkv] because [D:\Test\Out\Seraph of the End Vampire Reign - S01E04 - Vampire Mikaela.mkv] already exists
Processed 2 files
Rename episodes using [TheTVDB]
Auto-detected query: [Knights of Sidonia, Knights of Sidonia S2 The Ninth Planet Crusade]
Fetching episode data for [Knights of Sidonia]
Skipped [D:\Test\In\[Underwater] Knights of Sidonia S2 - The Ninth Planet Crusade - 01 (720p) [A631962C].mkv] because [D:\Test\Out\Knights of Sidonia - S02E01 - Conflict.mkv] already exists
Skipped [D:\Test\In\[Underwater] Knights of Sidonia S2 - The Ninth Planet Crusade - 02 (720p) [16383B2D].mkv] because [D:\Test\Out\Knights of Sidonia - S02E02 - Ability.mkv] already exists
Skipped [D:\Test\In\[Underwater] Knights of Sidonia S2 - The Ninth Planet Crusade - 03v2 (720p) [A07674AE].mkv] because [D:\Test\Out\Knights of Sidonia - S02E03 - Course.mkv] already exists
Processed 3 files
Done ヾ(@⌒ー⌒@)ノ
I would still want the script to recognise anime as anime, just parse it with TheTVDB.
This way I can sort new anime to it's own single folder so that Plex can recognize it.



Sorry if this is silly but I'm more of a hardware guy, never had to code at work.
;- )=
User avatar
rednoah
The Source
Posts: 23950
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename anim using TVDB

Post by rednoah »

1)
If you know you're processing TV Series then just set ut_label accordingly to skip auto-detection (you should do that anyway)

Code: Select all

--def ut_label=TV
2)
Files processed with AniDB are anime. Files processed with TheTVDB are TV Episodes. Anime are TV Shows and vice versa.

Assuming you're processing everything with TheTVDB you can still do any kind of differnationation you want in the format, but you have to define which TV Shows are considered Anime and which aren't.

What TV Shows are Anime?

Made in Japan?

Category Animation?

File Size?

Video Length?

Has [CRC32] in the filename?

File anime.txt contains Show title?

Some combination of the above?

None is perfect. You decide.
:idea: Please read the FAQ and How to Request Help.
Post Reply