mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-03 22:40:09 +00:00
Use real temp dir instead of cache dir for temp files (#12226)
This commit is contained in:
parent
5e840c1db6
commit
c666f9d050
10 changed files with 22 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue