--lang

Any questions? Need some help?
Post Reply
Ztrust
Posts: 69
Joined: 21 Dec 2013, 17:04

--lang

Post by Ztrust » 28 May 2015, 21:15

Hey Rednoah
I am sorry if I have misunderstood something, but I stumpled over this post
rednoah wrote:The amc script does not pass along --lang and thus will always force English:

Code: Select all

fetchMovieArtworkAndNfo(dir, movie, movieFile, extras)
I guess I'll change it to adhere to --lang as well.

The artwork.tmdb does pass along --lang and thus if you can set the language preference via --lang option:

Code: Select all

fetchMovieArtworkAndNfo(dir, movie, dir.getFiles{ it.isVideo() }.sort{ it.length() }.reverse().findResult{ it }, true, override, _args.locale ?: Locale.ENGLISH)
EDIT: Changed with r2915.
and I am hoping this now means i can build -- lang into format as to get danish episode titles for danish shows is this correct or have I misunderstood ?
well I am still trying to do something like this - and I just saw now you said early'r to use bash but all my machines run windows

Code: Select all

--lang {file.path =~ /nordic series/ ? 'da' : 'en'}

Ztrust

Post Reply