diff options
| author | Bond-009 <bond.009@outlook.com> | 2025-03-10 11:00:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-10 11:00:12 +0100 |
| commit | 6331de2e13d617bdc3248998ff400c1ec52832ec (patch) | |
| tree | 33107cd5bee7b833f27a13f3d7014be6d860cf62 /Jellyfin.Server.Implementations/Trickplay | |
| parent | 9c5a304142eb72dc7b9375bf8cfe1b632c3c29d5 (diff) | |
| parent | 6454a35ef831157fb10d8cbdf39017b2df2b8449 (diff) | |
Merge pull request #13406 from Shadowghost/extract-trickplay-master
Extract trickplay files into own subdirectory
Diffstat (limited to 'Jellyfin.Server.Implementations/Trickplay')
| -rw-r--r-- | Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs b/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs index 5d209b0af..9c0f5b57b 100644 --- a/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs +++ b/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs @@ -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, |
