Fix the YouTube plugin
This commit is contained in:
parent
6d8008cdf8
commit
e141b364fe
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue