update hls timer extend

This commit is contained in:
Luke Pulverenti 2013-08-28 18:11:02 -04:00
parent 3c98f62389
commit 517006a620

View File

@ -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);