mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
Fix the path to the extracted fonts on Windows
This commit is contained in:
parent
0a953aca8a
commit
ba8e478a2f
@ -1086,7 +1086,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
var fontPath = Path.Combine(_appPaths.CachePath, "attachments", state.MediaSource.Id);
|
var fontPath = Path.Combine(_appPaths.CachePath, "attachments", state.MediaSource.Id);
|
||||||
var fontParam = string.Format(
|
var fontParam = string.Format(
|
||||||
CultureInfo.InvariantCulture,
|
CultureInfo.InvariantCulture,
|
||||||
":fontsdir={0}",
|
":fontsdir='{0}'",
|
||||||
_mediaEncoder.EscapeSubtitleFilterPath(fontPath));
|
_mediaEncoder.EscapeSubtitleFilterPath(fontPath));
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
@ -1143,7 +1143,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
|
|
||||||
return string.Format(
|
return string.Format(
|
||||||
CultureInfo.InvariantCulture,
|
CultureInfo.InvariantCulture,
|
||||||
"subtitles='{0}:si={1}{2}{3}{4}'{5}",
|
"subtitles=f='{0}':si={1}{2}{3}{4}{5}",
|
||||||
_mediaEncoder.EscapeSubtitleFilterPath(mediaPath),
|
_mediaEncoder.EscapeSubtitleFilterPath(mediaPath),
|
||||||
state.InternalSubtitleStreamOffset.ToString(CultureInfo.InvariantCulture),
|
state.InternalSubtitleStreamOffset.ToString(CultureInfo.InvariantCulture),
|
||||||
alphaParam,
|
alphaParam,
|
||||||
|
Loading…
Reference in New Issue
Block a user