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)
|
protected void ExtendHlsTimer(string itemId, string playlistId)
|
||||||
{
|
{
|
||||||
|
var normalizedPlaylistId = playlistId.Replace("-low", string.Empty);
|
||||||
|
|
||||||
foreach (var playlist in Directory.EnumerateFiles(ApplicationPaths.EncodedMediaCachePath, "*.m3u8")
|
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())
|
.ToList())
|
||||||
{
|
{
|
||||||
ApiEntryPoint.Instance.OnTranscodeBeginRequest(playlist, TranscodingJobType.Hls);
|
ApiEntryPoint.Instance.OnTranscodeBeginRequest(playlist, TranscodingJobType.Hls);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user