[Subtitles][Ass] Fix non-working ASS-Override setting #18794
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This setting "Override ASS/SSA subtitle fonts" is broken in Kodi 19 (doesn't do anything). The problem is that libass is configured with
special:https://temp/fonts
as the font folder (to where the demuxer extracts the subtitle files) but when a font is selected in Kodi it is usually inspecial:https://home/media/Fonts/
. Since you can't append multiple folders to libass, If the user wants to use a system configured font, it has to be also copied to the temp folder before the lib is configured.Motivation and Context
Fixes an issue reported in IRC
How Has This Been Tested?
With mkv's containing muxed ass subtitles. Also tested all the samples in the team ftp server.
Screenshots (if appropriate):
Configured settings:
Previous behaviour:
PR:
Types of change