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

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Joon
Donor
Posts: 62
Joined: 05 Apr 2014, 14:13

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

Post 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
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah »

Use {primaryTitle} then. You'll have to set your custom anime format.
:idea: Please read the FAQ and How to Request Help.
Joon
Donor
Posts: 62
Joined: 05 Apr 2014, 14:13

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

Post 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')}"
Joon
Donor
Posts: 62
Joined: 05 Apr 2014, 14:13

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

Post by Joon »

Am i correct to assume you have put this format in the AMC script ?
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply