From e3ff8a18da07b9e4f513cb651a93cb22c5c3db76 Mon Sep 17 00:00:00 2001 From: kos Date: Thu, 19 Jan 2012 14:10:58 +0900 Subject: [PATCH] fix url parsing. --- lib/python/Plugins/Extensions/WebBrowser/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/python/Plugins/Extensions/WebBrowser/plugin.py b/lib/python/Plugins/Extensions/WebBrowser/plugin.py index b947a74..7626007 100644 --- a/lib/python/Plugins/Extensions/WebBrowser/plugin.py +++ b/lib/python/Plugins/Extensions/WebBrowser/plugin.py @@ -366,7 +366,7 @@ class VuPlayerService: if len(tmp) == 2 and tmp[0] == "http://www.youtube.com/watch": tmp = tmp[1].split("&") print tmp # ['v=BpThu778qB4', 'feature=related'] - if len(tmp) == 2: + if len(tmp) > 2: tmp = tmp[0].split("=") print tmp # ['v', 'BpThu778qB4'] if len(tmp) == 2 and tmp[0] == "v": -- 2.7.4