aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-02-23 09:48:08 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2015-02-23 09:48:08 +0100
commite141b364fe949f96b129b16aa28dc7456af50e9c (patch)
tree0a67bfcb9917ff988f89032c7beff8a247bb24fa
parent6d8008cdf81da869b548ee13586f343d58131e58 (diff)
downloadxK-e141b364fe949f96b129b16aa28dc7456af50e9c.tar.gz
xK-e141b364fe949f96b129b16aa28dc7456af50e9c.tar.xz
xK-e141b364fe949f96b129b16aa28dc7456af50e9c.zip
Fix the YouTube plugin
-rwxr-xr-xplugins/youtube4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/youtube b/plugins/youtube
index 65f7ce1..4b19af4 100755
--- a/plugins/youtube
+++ b/plugins/youtube
@@ -51,11 +51,11 @@ if youtube_api_key == "":
print ("ZYKLONB register")
-regexes = map (lambda x: re.compile (x), [
+regexes = list (map (lambda x: re.compile (x), [
'youtube\\.[a-z]+/[^ ]*[&?]v=([-_A-Za-z0-9]+)',
'youtube\\.[a-z]+/v/([-_A-Za-z0-9]+)',
'youtu\\.be/([-_A-Za-z0-9]+)'
-])
+]))
def print_video_info (channel, video_id):
global youtube_api_key