Page 1 of 1

Wrong subtitle language code

Posted: 23 Dec 2020, 12:17
by zocidj
When try to rename Serbian subtitle, filebot add croatian language code to subtitle name. How to fix that, or how can I to add custom language code to subtitle. Thanks

Image

Re: Wrong subtitle language code

Posted: 23 Dec 2020, 12:18
by rednoah
Thanks for the post! Before a real human comes by, please make sure your report has all the following points checked:
  • What are you trying to do achieve? What's not working? What have you tried so far?
  • Include screenshots, logs or filenames (i.e. demonstrate the issue)
  • Include System Information (i.e. filebot -script fn:sysinfo console output)
:idea: Please read How to Request Help and Fix Problems, Report Bugs, Get Features.

Re: Wrong subtitle language code

Posted: 23 Dec 2020, 16:03
by rednoah
zocidj wrote: 23 Dec 2020, 12:17 Image
If the original file name doesn't include a language code, then FileBot will resort to statistical probabilistic language detection, which may not necessarily work well for all languages. You may need to adjust your custom format to force certain language codes for certain files.

e.g. use .eng for all subtitles:

Code: Select all

{ny}{f.subtitle ? /.eng/ : null}

Re: Wrong subtitle language code

Posted: 23 Dec 2020, 20:00
by zocidj
rednoah wrote: 23 Dec 2020, 16:03
zocidj wrote: 23 Dec 2020, 12:17 Image
If the original file name doesn't include a language code, then FileBot will resort to statistical probabilistic language detection, which may not necessarily work well for all languages. You may need to adjust your custom format to force certain language codes for certain files.

e.g. use .eng for all subtitles:

Code: Select all

{ny}{f.subtitle ? /.eng/ : null}
Thank you very much. This is very usefull for me.