escape single quotes
This commit is contained in:
parent
71b8f87cb7
commit
a100effdb6
|
@ -716,7 +716,7 @@ namespace MediaBrowser.Api.Playback
|
|||
|
||||
// TODO: Perhaps also use original_size=1920x800 ??
|
||||
return string.Format("subtitles=filename='{0}'{1},setpts=PTS -{2}/TB",
|
||||
subtitlePath.Replace('\\', '/').Replace(":/", "\\:/"),
|
||||
subtitlePath.Replace("'", "\\'").Replace('\\', '/').Replace(":/", "\\:/"),
|
||||
charsetParam,
|
||||
seconds.ToString(UsCulture));
|
||||
}
|
||||
|
@ -724,7 +724,7 @@ namespace MediaBrowser.Api.Playback
|
|||
var mediaPath = state.MediaPath ?? string.Empty;
|
||||
|
||||
return string.Format("subtitles='{0}:si={1}',setpts=PTS -{2}/TB",
|
||||
mediaPath.Replace('\\', '/').Replace(":/", "\\:/"),
|
||||
mediaPath.Replace("'", "\\'").Replace('\\', '/').Replace(":/", "\\:/"),
|
||||
state.InternalSubtitleStreamOffset.ToString(UsCulture),
|
||||
seconds.ToString(UsCulture));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user