Use m.user since we already have it.

This commit is contained in:
Jimi 2023-05-13 11:23:06 -06:00
parent c8dd7eab08
commit ce9063859a

View File

@ -391,8 +391,8 @@ function sortSubtitles(id as string, MediaStreams)
end function
function FindPreferredAudioStream(streams as dynamic) as integer
preferredLanguage = m.global.userConfig.AudioLanguagePreference
playDefault = m.global.userConfig.PlayDefaultAudioTrack
preferredLanguage = m.user.Configuration.AudioLanguagePreference
playDefault = m.user.Configuration.PlayDefaultAudioTrack
if playDefault <> invalid and playDefault = true
return 1