mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-21 21:20:39 +02:00
update roku query string
This commit is contained in:
parent
0f23e302e5
commit
566f1f0ad8
|
@ -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