From de9fe79ab81752386a6ba1781c115fa958c1cbd1 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 24 Aug 2015 06:44:23 -0500 Subject: [PATCH] Add setup dialog For music - to enable and if direct stream should be used. --- resources/lib/ConnectionManager.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/resources/lib/ConnectionManager.py b/resources/lib/ConnectionManager.py index b6eff13b..0b4fabd5 100644 --- a/resources/lib/ConnectionManager.py +++ b/resources/lib/ConnectionManager.py @@ -103,6 +103,18 @@ class ConnectionManager(): self.logMsg("No user selected.", 1) xbmc.executebuiltin('Addon.OpenSettings(%s)' % self.addonId) return + + musicEnabled = xbmcgui.Dialog().yesno("Music Setting", "Enable music library?") + if musicEnabled: + self.logMsg("User opted to enable music library.", 1) + utils.settings('enableMusicSync', "true") + + musicPath = xbmcgui.Dialog().yesno("Music Setting", "Direct stream the music library?", "Select this option only if you plan on listening to music outside your network.") + if musicPath: + self.logMsg("User option to direct stream music library.", 1) + utils.settings('directstreammusic', "true") + + return def getServerDetails(self):