mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
Refactor and add scheduled task
This commit is contained in:
@@ -848,7 +848,7 @@ namespace Jellyfin.Api.Controllers
|
||||
StreamOptions = streamOptions
|
||||
};
|
||||
|
||||
return await GetVariantPlaylistInternal(streamingRequest, "main", cancellationTokenSource)
|
||||
return await GetVariantPlaylistInternal(streamingRequest, cancellationTokenSource)
|
||||
.ConfigureAwait(false);
|
||||
}
|
||||
|
||||
@@ -1013,7 +1013,7 @@ namespace Jellyfin.Api.Controllers
|
||||
StreamOptions = streamOptions
|
||||
};
|
||||
|
||||
return await GetVariantPlaylistInternal(streamingRequest, "main", cancellationTokenSource)
|
||||
return await GetVariantPlaylistInternal(streamingRequest, cancellationTokenSource)
|
||||
.ConfigureAwait(false);
|
||||
}
|
||||
|
||||
@@ -1371,7 +1371,7 @@ namespace Jellyfin.Api.Controllers
|
||||
.ConfigureAwait(false);
|
||||
}
|
||||
|
||||
private async Task<ActionResult> GetVariantPlaylistInternal(StreamingRequestDto streamingRequest, string name, CancellationTokenSource cancellationTokenSource)
|
||||
private async Task<ActionResult> GetVariantPlaylistInternal(StreamingRequestDto streamingRequest, CancellationTokenSource cancellationTokenSource)
|
||||
{
|
||||
using var state = await StreamingHelpers.GetStreamingState(
|
||||
streamingRequest,
|
||||
|
||||
Reference in New Issue
Block a user