gnoling/UnlinkMKV

segments missing if system language is not English

sPaCeMoNk3yIam opened this issue · 4 comments

If system language is not English, segment analysis will fail because of mkvinfo chosing the corresponding locale

Interesting issue. So I assume the problem is that it misses English subtitles in this case? Or rather, it'll only work if the subtitles in question match the in-use locale.

If that's the case, the correct fix sounds like a forced default locale in the script + an option to specify a different locale/override that behaviour.

No, like I said, it's a problem with mkvinfo. In my case the system language is German, so mkvinfo is displaying the infos in German, too. But your script seems to look for the output of mkvinfo in English, doesn't find what it's looking for and therefor displays "segments missing".

This can be fixed by over-writing LANG.

As a note, instead of changing your system language, you can just delete your language folder from mkvtoolnix/locale.

Mkvinfo will default to english if there's no locale for your system language.