Adapt for youtube shorts
This commit is contained in:
1 parent
70edc621cf
commit
5dd4b48529
1 file changed
+1
-1
@@ -33,7 +33,7 @@ def get_youtube_id(url):
|
||||
youtube_regex = (
|
||||
r'(https?://)?(www\.)?'
|
||||
'(youtube|youtu|youtube-nocookie)\.(com|be)/'
|
||||
'(watch\?v=|embed/|v/|.+\?v=)?([^&=%\?]{11})')
|
||||
'(watch\?v=|embed/|shorts/|v/|.+\?v=)?([^&=%\?]{11})')
|
||||
|
||||
youtube_regex_match = re.match(youtube_regex, url)
|
||||
if youtube_regex_match:
|
||||
|
||||
Reference in new issue
Block a user