aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Trickplay
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2025-01-22 18:20:57 +0100
committerShadowghost <Ghost_of_Stone@web.de>2025-01-26 11:56:19 +0100
commit6454a35ef831157fb10d8cbdf39017b2df2b8449 (patch)
tree4800866dc86a6938f4fe1ca7f6117ee07515342b /Jellyfin.Server.Implementations/Trickplay
parentb318f335991167102a5fa8d65030d200bbec898d (diff)
Extract trickplay files into own subdirectory
Diffstat (limited to 'Jellyfin.Server.Implementations/Trickplay')
-rw-r--r--Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs b/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs
index cd73d67c3..e94673bce 100644
--- a/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs
+++ b/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs
@@ -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,