mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
update hls timer extend
This commit is contained in:
parent
3c98f62389
commit
517006a620
@ -186,8 +186,10 @@ namespace MediaBrowser.Api.Playback.Hls
|
||||
|
||||
protected void ExtendHlsTimer(string itemId, string playlistId)
|
||||
{
|
||||
var normalizedPlaylistId = playlistId.Replace("-low", string.Empty);
|
||||
|
||||
foreach (var playlist in Directory.EnumerateFiles(ApplicationPaths.EncodedMediaCachePath, "*.m3u8")
|
||||
.Where(i => i.IndexOf(playlistId, StringComparison.OrdinalIgnoreCase) != -1)
|
||||
.Where(i => i.IndexOf(normalizedPlaylistId, StringComparison.OrdinalIgnoreCase) != -1)
|
||||
.ToList())
|
||||
{
|
||||
ApiEntryPoint.Instance.OnTranscodeBeginRequest(playlist, TranscodingJobType.Hls);
|
||||
|
Loading…
Reference in New Issue
Block a user