From: kos Date: Mon, 2 Jul 2012 06:08:48 +0000 (+0900) Subject: [dlnabrowser plugin] fix bug. X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=d619c613c873c6c242022cdae8d0db4b336e5027;hp=e981b4328e099f62e029e97694e24f19c50d4860 [dlnabrowser plugin] fix bug. --- diff --git a/lib/python/Plugins/Extensions/DLNABrowser/plugin.py b/lib/python/Plugins/Extensions/DLNABrowser/plugin.py index b6fa471..884b5a0 100644 --- a/lib/python/Plugins/Extensions/DLNABrowser/plugin.py +++ b/lib/python/Plugins/Extensions/DLNABrowser/plugin.py @@ -793,7 +793,10 @@ class DLNADeviceBrowser(Screen): def keyOK(self): global DLNA_CONFIG_ROOT_DIR - selectedFullPaht = '%s%s/'%(DLNA_CONFIG_ROOT_DIR, self["devicelist"].getCurrent()[1]) + selectedItem = self["devicelist"].getCurrent() + if selectedItem is None: + return + selectedFullPaht = '%s%s/'%(DLNA_CONFIG_ROOT_DIR, selectedItem[1]) self.session.openWithCallback(self.cbDeviceListRefresh, DLNAFileBrowser, selectedFullPaht) self.deviceListRefreshTimer.stop()