Page 1 of 1

Question about renaming Anime

Posted: 23 Jul 2014, 13:25
by Tensui
Hi,
I found Filebot few days ago and its a great tool thanks for it. But I have some problems with renaming Animes I took Ithiel's Anime Scheme and changed it a bit.

Code: Select all

{norm =	{it.upperInitial().lowerTrail().replaceTrailingBrackets().replaceAll(/[`´‘’ʻ""“”]/, "'").replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!").replaceAll(/[*\s]+/, " ").replaceAll(/\b[IiVvXx]+\b/, {it.upper() }).replaceAll(/\b[0-9](?i:th|nd|rd)\b/, {it.lower() }).replaceFirst(/^(?i)\s(.+)/, /$2, $1/)}; norm(primaryTitle)}{if (norm(n) != norm(primaryTitle)) ' ('+norm(n)+')'} ({y}{' '+any{certification}{imdb.certification}.replaceAll(/^\d+$/, 'PG-$0')})/{norm(primaryTitle)}- {absolute.pad(episodelist.size() < 99 ? 2 : 3)}{'Special '+special.pad(episodelist.size() < 99 ? 2 : 3)}- {norm(t)}{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition|/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, " ") + ')'}{" Part $pi"}{" [$vf $vc $ac $af]"}
to get for example:
Original name (English name) (year)/Original name - Episode - Title
Suzumiya Haruhi No Yuuutsu (The Melancholy of Haruhi Suzumiya) (2009)/Suzumiya Haruhi No Yuuutsu - 01 - The Melancholy Of Suzumiya Haruhi Part 1

well with Anidb it works great, but I wanted to use theTVDB then I get:
English name (year)/English name - Episode - Title

or if I change the language to German:
English name (Original name) (year)/English name - Episode - German Title //if german is present in tvdb

well what i wanted to ask was
is it possible to make the title language permanent english and use german as language to get the name right?
or any other way to get:
Original name (English name) (year)/Original name - Episode - Title

Sorry for the bad english its not my native language

Thanks for reading and for the help

Re: Question about renaming Anime

Posted: 23 Jul 2014, 17:30
by rednoah
So you don't want any German data in your output, but you want to search by German data and with English / Japanese titles only? You might need to rename in two steps.

I can't be bothered to understand that format, but this might be helpful:

AniDB:
{n} => Localized Title
{primaryTitle} =>Japanese-Romanji Title

TheTVDB:
{n} => Localized Title
{primaryTitle} =>English Title

Re: Question about renaming Anime

Posted: 23 Jul 2014, 22:23
by Tensui
Hi,
thanks for the answer, well just for testing I tried,

TVDB

Code: Select all

{n} ({primaryTitle}) ({y})/{n}- {sxe} - {t}
I get on english language preferences:
Love, Chunibyo & Other Delusions! (Love, Chunibyo & Other Delusions!) (2012)/Love, Chunibyo & Other Delusions- 1x01 - An Unforeseen Encounter... The Tyrant's Eye of Truth

on german:
Chuunibyou demo Koi ga Shitai! (Love, Chunibyo & Other Delusions) (2012)/Chuunibyou demo Koi ga Shitai!- 1x01 - Begegnung mit dem ... bösen Auge

Im trying to get a mix from both:
Chuunibyou demo Koi ga Shitai! (Love, Chunibyo & Other Delusions) (2012)/Chuunibyou demo Koi ga Shitai!- 1x01 - An Unforeseen Encounter... The Tyrant's Eye of Truth

testing with switching the code to

Code: Select all

{primaryTitle} ({n}) ({y})/{primaryTitle} - {sxe} - {t}
gives me on english preferences
Love, Chunibyo & Other Delusions (Love, Chunibyo & Other Delusions) (2012)/Love, Chunibyo & Other Delusions - 1x01 - An Unforeseen Encounter... The Tyrant's Eye of Truth
german:
Love, Chunibyo & Other Delusions (Chuunibyou demo Koi ga Shitai!) (2012)/Love, Chunibyo & Other Delusions - 1x01 - Begegnung mit dem ... bösen Auge

AniDB:

Code: Select all

{primaryTitle} ({n}) ({y})/{primaryTitle} - {sxe} - {t}
I get on english language preferences:
Chuunibyou demo Koi ga Shitai! (Love, Chunibyo & Other Delusions!) (2012)/Chuunibyou demo Koi ga Shitai! - 01 - A Chance Encounter... with Wicked Lord Shingan

on german:
Chuunibyou demo Koi ga Shitai! (Chuunibyou demo Koi ga Shitai!) (2012)/Chuunibyou demo Koi ga Shitai! - 01 - A Chance Encounter... with Wicked Lord Shingan

on AniDB i could just use the english preference, but wanted to use TVDB.

Is this possible what i want to do with TVDB?

Sorry couldn't find an shorter Anime Name for testing
Thanks for your time and help

Re: Question about renaming Anime

Posted: 24 Jul 2014, 07:35
by rednoah
Well, it looks like that TheTVDB defaults to Japanese-Romanji if German is not defined. So all the information you need is available in one form or another, just not at the same time. So you probably need to do a 2-pass rename, just need to be smart about it.

So I don't know what you want, but I guess the issue is that you never have all the data you need at the same time, so it's not possible.

Re: Question about renaming Anime

Posted: 24 Jul 2014, 10:08
by Tensui
Ok thanks now I know.

Thanks for your time