Small adjustment for the direct play failed
Just a different, more appropriate presentation.
This commit is contained in:
parent
e32c27685b
commit
05777a0f23
1 changed files with 6 additions and 4 deletions
|
@ -43,11 +43,13 @@ class PlayUtils():
|
||||||
playurl = self.directPlay(result)
|
playurl = self.directPlay(result)
|
||||||
if not playurl:
|
if not playurl:
|
||||||
# Let user know that direct play failed
|
# Let user know that direct play failed
|
||||||
resp = xbmcgui.Dialog().yesno('Warning', 'Unable to direct play. Try direct stream or transcoding instead? By selecting yes, it will also switch your playback to HTTP for future playback.')
|
resp = xbmcgui.Dialog().select('Warning: Unable to direct play.', ['Play from HTTP', 'Play from HTTP and remember next time.'])
|
||||||
if resp == True:
|
if resp > -1:
|
||||||
# Try direct stream
|
# Play from HTTP
|
||||||
playurl = self.directStream(result, server, id)
|
playurl = self.directStream(result, server, id)
|
||||||
addon.setSetting('playFromStream', "true")
|
if resp == 1:
|
||||||
|
# Remember next time
|
||||||
|
addon.setSetting('playFromStream', "true")
|
||||||
if not playurl:
|
if not playurl:
|
||||||
# Try transcoding
|
# Try transcoding
|
||||||
playurl = self.transcoding(result, server, id)
|
playurl = self.transcoding(result, server, id)
|
||||||
|
|
Loading…
Reference in a new issue