diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-02-23 09:48:08 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-02-23 09:48:08 +0100 |
commit | e141b364fe949f96b129b16aa28dc7456af50e9c (patch) | |
tree | 0a67bfcb9917ff988f89032c7beff8a247bb24fa /plugins | |
parent | 6d8008cdf81da869b548ee13586f343d58131e58 (diff) | |
download | xK-e141b364fe949f96b129b16aa28dc7456af50e9c.tar.gz xK-e141b364fe949f96b129b16aa28dc7456af50e9c.tar.xz xK-e141b364fe949f96b129b16aa28dc7456af50e9c.zip |
Fix the YouTube plugin
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/youtube | 4 |
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 |