Wrong subtitle language code

Any questions? Need some help?
Post Reply
zocidj
Posts: 9
Joined: 08 Oct 2014, 13:00

Wrong subtitle language code

Post 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
Last edited by zocidj on 23 Dec 2020, 12:53, edited 2 times in total.
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Wrong subtitle language code

Post 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.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Wrong subtitle language code

Post 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}
:idea: Please read the FAQ and How to Request Help.
zocidj
Posts: 9
Joined: 08 Oct 2014, 13:00

Re: Wrong subtitle language code

Post 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.
Post Reply