Fix DLNA playback of DVD and BD folders

This commit is contained in:
Shadowghost
2023-02-17 00:26:03 +01:00
parent cd852d43c1
commit 47aa07c342
3 changed files with 22 additions and 5 deletions

View File

@@ -325,8 +325,12 @@ public class TranscodingJobHelper : IDisposable
await DeletePartialStreamFiles(job.Path!, job.Type, 0, 1500).ConfigureAwait(false);
if (job.MediaSource?.VideoType == VideoType.Dvd || job.MediaSource?.VideoType == VideoType.BluRay)
{
var path = Path.Join(job.Path, job.MediaSource.Id + ".concat");
File.Delete(path);
var concatFilePath = Path.Join(_serverConfigurationManager.GetTranscodePath(), job.MediaSource.Id + ".concat");
if (File.Exists(concatFilePath))
{
_logger.LogInformation("Deleting ffmpeg concat configuration at {Path}", concatFilePath);
_fileSystem.DeleteFile(concatFilePath);
}
}
}