java.lang.IllegalArgumentException: Illegal language code

Support for macOS users
Post Reply
cheaters
Posts: 214
Joined: 09 Oct 2016, 02:01

java.lang.IllegalArgumentException: Illegal language code

Post by cheaters »

looking through error logs today to try to find info for another issue and noticed that every time filebot attempted to duplicate an .srt file 28 java errors occurred. None of the .srt files have these language codes.

If it helps these are the error headings:

Code: Select all

java.lang.IllegalArgumentException: Illegal language code: af
java.lang.IllegalArgumentException: Illegal language code: an
java.lang.IllegalArgumentException: Illegal language code: ast
java.lang.IllegalArgumentException: Illegal language code: be
java.lang.IllegalArgumentException: Illegal language code: bn
java.lang.IllegalArgumentException: Illegal language code: br
java.lang.IllegalArgumentException: Illegal language code: cy
java.lang.IllegalArgumentException: Illegal language code: et
java.lang.IllegalArgumentException: Illegal language code: eu
java.lang.IllegalArgumentException: Illegal language code: ga
java.lang.IllegalArgumentException: Illegal language code: gl
java.lang.IllegalArgumentException: Illegal language code: gu
java.lang.IllegalArgumentException: Illegal language code: ht
java.lang.IllegalArgumentException: Illegal language code: km
java.lang.IllegalArgumentException: Illegal language code: kn
java.lang.IllegalArgumentException: Illegal language code: ml
java.lang.IllegalArgumentException: Illegal language code: mr
java.lang.IllegalArgumentException: Illegal language code: mt
java.lang.IllegalArgumentException: Illegal language code: ne
java.lang.IllegalArgumentException: Illegal language code: oc
java.lang.IllegalArgumentException: Illegal language code: pa
java.lang.IllegalArgumentException: Illegal language code: so
java.lang.IllegalArgumentException: Illegal language code: sw
java.lang.IllegalArgumentException: Illegal language code: ta
java.lang.IllegalArgumentException: Illegal language code: te
java.lang.IllegalArgumentException: Illegal language code: tl
java.lang.IllegalArgumentException: Illegal language code: ur
java.lang.IllegalArgumentException: Illegal language code: yi

Link to log of one file being duplicated
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: java.lang.IllegalArgumentException: Illegal language code

Post by rednoah »

{lang} just doesn't work for some files. It'll work better if your files have clear .eng language tags. It'll work less well if you rely on statistical language auto-detection, especially for uncommon or unknown languages.


:idea: If you have special needs, then {plex} and {lang} may be too limiting for your particular use case. You can always switch to your own custom code to satisfy your special needs though. A little bit more difficult, but more freedom to do anything you want.


:idea: By default, FileBot won't be able to process subtitles like yours. I recommend dropping only video files into FileBot for processing, and then copying along all the extras via the Import companion files post-processing feature.
:idea: Please read the FAQ and How to Request Help.
cheaters
Posts: 214
Joined: 09 Oct 2016, 02:01

Re: java.lang.IllegalArgumentException: Illegal language code

Post by cheaters »

Thanks rednoah! I will look into this when I have another bit of time.
Post Reply