Fix the YouTube plugin

This commit is contained in:
Přemysl Eric Janouch 2015-02-23 09:48:08 +01:00
parent 6d8008cdf8
commit e141b364fe
1 changed files with 2 additions and 2 deletions

View File

@ -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