restart hls session in some cases (#1880)

This commit is contained in:
Jason Dove
2024-08-23 12:59:48 -05:00
committed by GitHub
parent 8b911332a6
commit c2b7be66af
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -73,6 +73,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Improve trakt list URL validation; non-trakt URLs will no longer be requested
- Prevent saving block templates when blocks are overlapping
- This can happen if block durations are changed for blocks that are already on the template
- Redirect variant playlist request to proper URL for starting `HLS Segmenter` session when no session is active
- This can happen when some clients "pause" for long enough for the session to stop in ETV
- When this happens, the client requests the temporary playlist URL e.g. `/iptv/session/1/hls.m3u8` (not the original URL `/iptv/channel/1.m3u8`)
- To fix, the client will be redirected back to the original URL in this case which will create a new session
## [0.8.7-beta] - 2024-06-26
### Added
+2 -2
View File
@@ -168,8 +168,8 @@ public class IptvController : ControllerBase
return NotFound();
}
_logger.LogWarning("Unable to locate session worker for channel {Channel}", channelNumber);
return NotFound();
_logger.LogWarning("Unable to locate session worker for channel {Channel}; will redirect to start session", channelNumber);
return RedirectToAction(nameof(GetHttpLiveStreamingVideo), new { channelNumber });
}
[HttpHead("iptv/channel/{channelNumber}.m3u8")]