I get invalid --lang value every time a movie or series is processed

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Movieaholic
Posts: 20
Joined: 31 Jul 2017, 03:17

I get invalid --lang value every time a movie or series is processed

Post by Movieaholic »

Hi I get Invalid

Code: Select all

--lang value: 'n': null not in [afr, sqi, ara, hye, bul, cat, hrv, ces, dan, nld, eng, est, fin, fra, quc, deu, ell, heb, hin, hun, isl, ind, ita, jpn, x-jat, kor, lav, lit, mkd, msa, zho, zht, hkg, nor, fas, pol, por, pob, ron, rus, srp, slk, slv, spa, mxn, swe, tha, tur, ukr, vie]
every time a new movie or series is processed I'm guessing there is error somewhere in my code causing this issue or is this normal?

Format: Select all

--def "movieFormat=\\Storagelocation/{fn =~ /2160p|4K|4k|UHD/ ? '4K' : fn =~ /3D|3d/ ? '3D' : '1080'}/{n} ({y})/{n} ({y}){fn =~ /4K|2160|4k|UHD/ ? ' - 4K' : ''}{fn =~ /3D/ ? ' 3D' : ''}"
--def "seriesFormat=\\Storagelocation/TV Shows/{fn =~ /2160p|4K|4k|UHD/ ? '4K' : fn =~ /3D|3d/ ? '3D' : '1080'}/{n}/{'Season '+s}/{n} - {s00e00} - {t}"
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: I get invalid --lang value every time a movie or series is processed

Post by rednoah »

:!: Looks like you're using the amc script and are setting --def subtitles=n in your command. --def subtitles=n is invalid usage because n is not a language. (NOTE: this is a guess because you didn't copy & paste the command nor console output)

:arrow: Use --def subtitles=eng if you want English subtitles, or remove --def subtitles altogether if you want to disable subtitles.
:idea: Please read the FAQ and How to Request Help.
Movieaholic
Posts: 20
Joined: 31 Jul 2017, 03:17

Re: I get invalid --lang value every time a movie or series is processed

Post by Movieaholic »

Spot On Thanks Again
Post Reply