Merge pull request #13406 from Shadowghost/extract-trickplay-master

Extract trickplay files into own subdirectory
This commit is contained in:
Bond-009
2025-03-10 11:00:12 +01:00
committed by GitHub
4 changed files with 46 additions and 46 deletions

View File

@@ -610,9 +610,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,