aboutsummaryrefslogtreecommitdiff
path: root/plugins/youtube
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/youtube')
-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