Page 1 of 1

[AMC] AniDB, how to always use main title ?

Posted: 21 Apr 2014, 18:19
by Joon
Heya,

Because i use the AniDB plugin for XBMC to detect my anime the folders and fileformat have to match what the AniDB scraper expects, for the most part this works perfectly (so thank you for that).
However the only hiccups i seem to get is when filebot decides that it likes the english title more than the 'official' title of the anime.
For example, the input of what it needs to rename is 'mangaka-san to assistant-san to' it will rename it to 'The Comic Artist and His Assistants'
I would like to always use the main title of the show for detection purposes, is this possible with AMC?

Here are some examples where the 'official title' is used instead of the main title.
http://anidb.net/perl-bin/animedb.pl?sh ... &aid=10295
http://anidb.net/perl-bin/animedb.pl?sh ... &aid=10069
http://anidb.net/perl-bin/animedb.pl?sh ... e&aid=9996

Re: [AMC] AniDB, how to always use main title ?

Posted: 22 Apr 2014, 02:45
by rednoah
Use {primaryTitle} then. You'll have to set your custom anime format.

Re: [AMC] AniDB, how to always use main title ?

Posted: 22 Apr 2014, 05:09
by Joon
rednoah wrote:Use {primaryTitle} then. You'll have to set your custom anime format.
Thank you!

Found the current format in the AMC script, i'll copy it from there and add it to the postprocess (modified ofc)!

--def "animeFormat=D:/Anime/{primaryTitle}/{primaryTitle} - {sxe} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").replacePart(', Part $1')}"

unfortunatly this doesn't work

Code: Select all

javax.script.ScriptException: SyntaxError: expecting ''', found '<EOF>'
Does this have to do with escaping ?


Edit: it did

Correct one:

Code: Select all

--def "animeFormat=D:/Anime/{primaryTitle}/{primaryTitle} - {sxe} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, \"'\").replacePart(', Part $1')}"

Re: [AMC] AniDB, how to always use main title ?

Posted: 10 May 2014, 06:42
by Joon
Am i correct to assume you have put this format in the AMC script ?

Re: [AMC] AniDB, how to always use main title ?

Posted: 10 May 2014, 07:17
by rednoah
Yep, doesn't really make sense to pass in the anime format via cmdline yours is exactly the same as the default anyway.