mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
commit
d85c3f3a33
1 changed files with 6 additions and 4 deletions
|
@ -514,10 +514,7 @@ namespace MediaBrowser.Api.Playback.Hls
|
|||
// Main stream
|
||||
var playlistUrl = isLiveStream ? "live.m3u8" : "main.m3u8";
|
||||
|
||||
if ((Request.UserAgent ?? string.Empty).IndexOf("roku", StringComparison.OrdinalIgnoreCase) == -1)
|
||||
{
|
||||
playlistUrl += queryString;
|
||||
}
|
||||
playlistUrl += queryString;
|
||||
|
||||
var request = state.Request;
|
||||
|
||||
|
@ -704,6 +701,11 @@ namespace MediaBrowser.Api.Playback.Hls
|
|||
var queryStringIndex = Request.RawUrl.IndexOf('?');
|
||||
var queryString = queryStringIndex == -1 ? string.Empty : Request.RawUrl.Substring(queryStringIndex);
|
||||
|
||||
if ((Request.UserAgent ?? string.Empty).IndexOf("roku", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
{
|
||||
queryString = string.Empty;
|
||||
}
|
||||
|
||||
var index = 0;
|
||||
|
||||
foreach (var length in segmentLengths)
|
||||
|
|
Loading…
Reference in a new issue