Only move trickplay file should not be saved with media to metadata dir (#12704)

This commit is contained in:
gnattu 2024-09-24 22:12:04 +08:00 committed by GitHub
parent 30be00adb2
commit 38d0b004ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,7 +105,7 @@ public class TrickplayManager : ITrickplayManager
_logger.LogInformation("Moved trickplay images for {ItemName} to {Location}", video.Name, mediaOutputDir);
}
}
else if (Directory.Exists(mediaOutputDir))
else if (!shouldBeSavedWithMedia && Directory.Exists(mediaOutputDir))
{
var mediaDirFiles = Directory.GetFiles(mediaOutputDir);
var localDirExists = Directory.Exists(localOutputDir);