mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
Use real temp dir instead of cache dir for temp files (#12226)
This commit is contained in:
@@ -1203,10 +1203,14 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
|
||||
if (state.MediaSource.VideoType == VideoType.Dvd || state.MediaSource.VideoType == VideoType.BluRay)
|
||||
{
|
||||
var tmpConcatPath = Path.Join(_configurationManager.GetTranscodePath(), state.MediaSource.Id + ".concat");
|
||||
_mediaEncoder.GenerateConcatConfig(state.MediaSource, tmpConcatPath);
|
||||
var concatFilePath = Path.Join(_configurationManager.CommonApplicationPaths.CachePath, "concat", state.MediaSource.Id + ".concat");
|
||||
if (!File.Exists(concatFilePath))
|
||||
{
|
||||
_mediaEncoder.GenerateConcatConfig(state.MediaSource, concatFilePath);
|
||||
}
|
||||
|
||||
arg.Append(" -f concat -safe 0 -i \"")
|
||||
.Append(tmpConcatPath)
|
||||
.Append(concatFilePath)
|
||||
.Append("\" ");
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user