From f084608e84b556adce2349afb16267c8af635362 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Wed, 8 Apr 2015 20:28:28 -0500 Subject: [PATCH] Added-Fix HTTP Playback Added an extra prompt for auto detection. --- resources/lib/ConnectionManager.py | 13 +++++++++++-- resources/settings.xml | 4 ++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/resources/lib/ConnectionManager.py b/resources/lib/ConnectionManager.py index 2dd1a234..b46e0075 100644 --- a/resources/lib/ConnectionManager.py +++ b/resources/lib/ConnectionManager.py @@ -122,13 +122,22 @@ class ConnectionManager(): if(return_value > -1): selected_user = userList[return_value] - self.logMsg("Setting Selected User: %s" % selected_user) + self.logMsg("elected User: %s" % selected_user) self.addon.setSetting("username", selected_user) - return else: xbmc.log("No user selected.") xbmc.executebuiltin('Addon.OpenSettings(%s)' % self.addonId) return + + # Option to play from http + setPlayback = xbmcgui.Dialog().yesno("Playback option", "Play your files using HTTP?") + if setPlayback == 1: + self.logMsg("Playback will be set using HTTP.", 1) + addon.setSetting("playFromStream", "true") + return + else: + self.logMsg("Playback will be set using SMB.", 1) + return def getServerDetails(self): diff --git a/resources/settings.xml b/resources/settings.xml index 1e9deee2..d23bbb80 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -3,11 +3,11 @@ + - - +