From e141b364fe949f96b129b16aa28dc7456af50e9c Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Mon, 23 Feb 2015 09:48:08 +0100
Subject: Fix the YouTube plugin
---
plugins/youtube | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'plugins/youtube')
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
--
cgit v1.2.3-70-g09d2