Browse Source

Fix tiles playlist not using relative paths

Nick 1 year ago
parent
commit
ac906a04e2
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs

+ 1 - 2
Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs

@@ -382,7 +382,7 @@ public class TrickplayManager : ITrickplayManager
 
 
             if (trickplayInfo.ThumbnailCount > 0)
             if (trickplayInfo.ThumbnailCount > 0)
             {
             {
-                const string urlFormat = "Trickplay/{0}/{1}.jpg?MediaSourceId={2}&api_key={3}";
+                const string urlFormat = "{0}.jpg?MediaSourceId={1}&api_key={2}";
                 const string decimalFormat = "{0:0.###}";
                 const string decimalFormat = "{0:0.###}";
 
 
                 var resolution = $"{trickplayInfo.Width}x{trickplayInfo.Height}";
                 var resolution = $"{trickplayInfo.Width}x{trickplayInfo.Height}";
@@ -431,7 +431,6 @@ public class TrickplayManager : ITrickplayManager
                         .AppendFormat(
                         .AppendFormat(
                             CultureInfo.InvariantCulture,
                             CultureInfo.InvariantCulture,
                             urlFormat,
                             urlFormat,
-                            width.ToString(CultureInfo.InvariantCulture),
                             i.ToString(CultureInfo.InvariantCulture),
                             i.ToString(CultureInfo.InvariantCulture),
                             itemId.ToString("N"),
                             itemId.ToString("N"),
                             apiKey)
                             apiKey)