mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 06:53:07 +03:00
rework result factory
This commit is contained in:
@@ -1218,6 +1218,11 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
|
||||
public string EscapeSubtitleFilterPath(string path)
|
||||
{
|
||||
// https://ffmpeg.org/ffmpeg-filters.html#Notes-on-filtergraph-escaping
|
||||
// We need to double escape
|
||||
|
||||
var escapeChars = new[] {':', '\'', ','};
|
||||
|
||||
return path.Replace('\\', '/').Replace(":/", "\\:/").Replace("'", "'\\\\\\''");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user