From 05777a0f239e912c52fefaaf214570f35ea3ada8 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Thu, 14 May 2015 01:05:52 -0500 Subject: [PATCH] Small adjustment for the direct play failed Just a different, more appropriate presentation. --- resources/lib/PlayUtils.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/resources/lib/PlayUtils.py b/resources/lib/PlayUtils.py index 24e986bb..8e7384a4 100644 --- a/resources/lib/PlayUtils.py +++ b/resources/lib/PlayUtils.py @@ -43,11 +43,13 @@ class PlayUtils(): playurl = self.directPlay(result) if not playurl: # 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.') - if resp == True: - # Try direct stream + resp = xbmcgui.Dialog().select('Warning: Unable to direct play.', ['Play from HTTP', 'Play from HTTP and remember next time.']) + if resp > -1: + # Play from HTTP playurl = self.directStream(result, server, id) - addon.setSetting('playFromStream', "true") + if resp == 1: + # Remember next time + addon.setSetting('playFromStream', "true") if not playurl: # Try transcoding playurl = self.transcoding(result, server, id)