Extract trickplay files into own subdirectory

This commit is contained in:
Shadowghost
2025-01-22 18:20:57 +01:00
parent b318f33599
commit 6454a35ef8
4 changed files with 46 additions and 46 deletions

View File

@@ -602,9 +602,11 @@ public class TrickplayManager : ITrickplayManager
/// <inheritdoc />
public string GetTrickplayDirectory(BaseItem item, int tileWidth, int tileHeight, int width, bool saveWithMedia = false)
{
var basePath = _config.ApplicationPaths.TrickplayPath;
var idString = item.Id.ToString("N", CultureInfo.InvariantCulture);
var path = saveWithMedia
? Path.Combine(item.ContainingFolderPath, Path.ChangeExtension(item.Path, ".trickplay"))
: Path.Combine(item.GetInternalMetadataPath(), "trickplay");
: Path.Combine(basePath, idString);
var subdirectory = string.Format(
CultureInfo.InvariantCulture,