mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Add baseUrlParam back in and fix indentation
This commit is contained in:
parent
17f1e8d19b
commit
0dffe64489
@ -1632,6 +1632,15 @@ public class DynamicHlsController : BaseJellyfinApiController
|
|||||||
? _encodingOptions.MaxMuxingQueueSize.ToString(CultureInfo.InvariantCulture)
|
? _encodingOptions.MaxMuxingQueueSize.ToString(CultureInfo.InvariantCulture)
|
||||||
: "128";
|
: "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);
|
var hlsArguments = GetHlsArguments(isEventPlaylist, state.SegmentLength);
|
||||||
|
|
||||||
return string.Format(
|
return string.Format(
|
||||||
|
@ -103,12 +103,12 @@ public class EncodingOptions
|
|||||||
/// Gets or sets the delay after which throttling happens.
|
/// Gets or sets the delay after which throttling happens.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int ThrottleDelaySeconds { get; set; }
|
public int ThrottleDelaySeconds { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether segment deletion is enabled.
|
/// Gets or sets a value indicating whether segment deletion is enabled.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool EnableSegmentDeletion { get; set; }
|
public bool EnableSegmentDeletion { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets seconds for which segments should be kept before being deleted.
|
/// Gets or sets seconds for which segments should be kept before being deleted.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user