AMC language specific rename

All your suggestions, requests and ideas for future development
Post Reply
cina
Posts: 7
Joined: 07 Dec 2014, 15:00

AMC language specific rename

Post by cina »

Hi!

I've successfully set up AMC for rTorrent and used your script for 2-3 years now with a slight modification. I wanted my media to be renamed to Hungarian so I added a <.lang: 'hu'> parameter to the rename statments in amc.groovy (line numbers are 418, 440, 462, 489).

Code: Select all

def dest = group.tvs ? rename(file: files, format: seriesFormat, db: 'TheTVDB', lang:'hu') : rename(file: files, format: animeFormat, db: 'AniDB', lang:'hu')

Code: Select all

def dest = rename(file: files, format: movieFormat, db: 'TheMovieDB', lang:'hu')
I've tested this with series and movies already for some years.

I request a command line parameter for the amc script like:

Code: Select all

--def lang:XX (XX stands for code locale)
I did not tried to modify the script to pick up the argument as groovy is much complex for me. This was easy and working. But I realized that with version 4.7.5 you changed amc.groovy so I needed to download, modify and install the script again. With this option I would be able to use the remote script version of amc.

Thank you,
Zsolt.
User avatar
rednoah
The Source
Posts: 22984
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC language specific rename

Post by rednoah »

Have you tried --lang hu yet?
:idea: Please read the FAQ and How to Request Help.
cina
Posts: 7
Joined: 07 Dec 2014, 15:00

Re: AMC language specific rename

Post by cina »

Nope.
I will and check back...
cina
Posts: 7
Joined: 07 Dec 2014, 15:00

Re: AMC language specific rename

Post by cina »

Awesome! It works, thanks a lot.

I think it should be mentioned in the FAQ/Forum for AMC:viewtopic.php?t=215
Note: that's why groovy so complex for me, did not realize it should work...
cina
Posts: 7
Joined: 07 Dec 2014, 15:00

Re: AMC language specific rename

Post by cina »

Really excellent support.

Donated for this: 8JM466258K532524S
User avatar
rednoah
The Source
Posts: 22984
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC language specific rename

Post by rednoah »

Well, all my scripts try to respect (if possible) the standard FileBot options.

--lang, --conflict, --action, etc are not documented in the amc script because they're documented in the filebot command-line help (filebot -help) and apply to all commands and scripts (though some scripts may ignore them).

@see http://www.filebot.net/cli.html
:idea: Please read the FAQ and How to Request Help.
Post Reply