AMC language specific rename
Posted: 05 Dec 2016, 16:26
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).
I've tested this with series and movies already for some years.
I request a command line parameter for the amc script like:
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.
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 request a command line parameter for the amc script like:
Code: Select all
--def lang:XX (XX stands for code locale)
Thank you,
Zsolt.