瀏覽代碼

Add baseUrlParam back in and fix indentation

Dominik 2 年之前
父節點
當前提交
0dffe64489

+ 9 - 0
Jellyfin.Api/Controllers/DynamicHlsController.cs

@@ -1632,6 +1632,15 @@ public class DynamicHlsController : BaseJellyfinApiController
             ? _encodingOptions.MaxMuxingQueueSize.ToString(CultureInfo.InvariantCulture)
             : "128";
 
+        var baseUrlParam = string.Empty;
+        if (isEventPlaylist)
+        {
+            baseUrlParam = string.Format(
+                CultureInfo.InvariantCulture,
+                " -hls_base_url \"hls/{0}/\"",
+                Path.GetFileNameWithoutExtension(outputPath));
+        }
+
         var hlsArguments = GetHlsArguments(isEventPlaylist, state.SegmentLength);
 
         return string.Format(

+ 2 - 2
MediaBrowser.Model/Configuration/EncodingOptions.cs

@@ -103,12 +103,12 @@ public class EncodingOptions
     /// Gets or sets the delay after which throttling happens.
     /// </summary>
     public int ThrottleDelaySeconds { get; set; }
-  
+
     /// <summary>
     /// Gets or sets a value indicating whether segment deletion is enabled.
     /// </summary>
     public bool EnableSegmentDeletion { get; set; }
-  
+
     /// <summary>
     /// Gets or sets seconds for which segments should be kept before being deleted.
     /// </summary>