Escape tmpConcatPath for DVD and BD folder

Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
gnattu 2024-05-31 14:54:00 +08:00
parent 8e979bdb4b
commit 2cb74e3dd0

View File

@ -1189,8 +1189,7 @@ namespace MediaBrowser.Controller.MediaEncoding
{ {
var tmpConcatPath = Path.Join(_configurationManager.GetTranscodePath(), state.MediaSource.Id + ".concat"); var tmpConcatPath = Path.Join(_configurationManager.GetTranscodePath(), state.MediaSource.Id + ".concat");
_mediaEncoder.GenerateConcatConfig(state.MediaSource, tmpConcatPath); _mediaEncoder.GenerateConcatConfig(state.MediaSource, tmpConcatPath);
arg.Append(" -f concat -safe 0 -i ") arg.Append(CultureInfo.InvariantCulture, $" -f concat -safe 0 -i \"{tmpConcatPath}\"");
.Append(tmpConcatPath);
} }
else else
{ {