mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-23 06:09:41 +00:00
Merge pull request #1874 from cewert/fix-loadvideocontenttask-crash2
This commit is contained in:
commit
a93c893df4
@ -13,7 +13,6 @@ enum SubtitleSelection
|
||||
end enum
|
||||
|
||||
sub init()
|
||||
m.user = AboutMe()
|
||||
m.top.functionName = "loadItems"
|
||||
end sub
|
||||
|
||||
@ -570,8 +569,8 @@ function sortSubtitles(id as string, MediaStreams)
|
||||
end function
|
||||
|
||||
function FindPreferredAudioStream(streams as dynamic) as integer
|
||||
preferredLanguage = m.user.Configuration.AudioLanguagePreference
|
||||
playDefault = m.user.Configuration.PlayDefaultAudioTrack
|
||||
preferredLanguage = m.global.session.user.Configuration.AudioLanguagePreference
|
||||
playDefault = m.global.session.user.Configuration.PlayDefaultAudioTrack
|
||||
|
||||
if playDefault <> invalid and playDefault = true
|
||||
return 1
|
||||
@ -579,7 +578,7 @@ function FindPreferredAudioStream(streams as dynamic) as integer
|
||||
|
||||
' Do we already have the MediaStreams or not?
|
||||
if streams = invalid
|
||||
url = Substitute("Users/{0}/Items/{1}", m.user.id, m.top.itemId)
|
||||
url = Substitute("Users/{0}/Items/{1}", m.global.session.user.id, m.top.itemId)
|
||||
resp = APIRequest(url)
|
||||
jsonResponse = getJson(resp)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user