Browse Source

Fix the YouTube plugin

tags/v0.9
Přemysl Janouch 5 years ago
parent
commit
e141b364fe
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      plugins/youtube

+ 2
- 2
plugins/youtube 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

Loading…
Cancel
Save