Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
external_files: detect locales with a region like en-US
This loads subtitle files like foo.en-US.srt with --sub-auto=exact. To preserve the case of these locales and not convert them to e.g. en-us, stop lower casing filenames, and instead use case insensitive functions to check if the media filename is contained in the external filenames. Extensions, whitelisted cover art filenames and idx files were already being compared case insensitively. This allows locales of any number of characters because there are locales like gsw-u-sd-chzh. Fixes #12372, fixes #13251.
- Loading branch information