update regex
This commit is contained in:
parent
eec86be88c
commit
bd3e1447e4
@ -74,7 +74,7 @@ class Handler(BaseHTTPRequestHandler):
|
||||
return
|
||||
|
||||
path = unquote(self.path)
|
||||
id_match = re.match("\/(?:id\/|(?:https?:\/\/)?(?:(?:www\.|music\.|m\.)?youtube\.com\/(?:watch\?v=|shorts\/)|youtu\.be\/))([A-Za-z0-9_-]{11})", path)
|
||||
id_match = re.match("\/(?:id\/|(?:https?:\/\/)?(?:(?:www\.|music\.|m\.)?youtube\.com\/(?:watch\?v=|shorts\/|live\/)|youtu\.be\/))([A-Za-z0-9_-]{11})", path)
|
||||
|
||||
if id_match:
|
||||
video_id = id_match[1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user