From d619c613c873c6c242022cdae8d0db4b336e5027 Mon Sep 17 00:00:00 2001 From: kos Date: Mon, 2 Jul 2012 15:08:48 +0900 Subject: [PATCH] [dlnabrowser plugin] fix bug. --- lib/python/Plugins/Extensions/DLNABrowser/plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() -- 2.7.4