mirror of
https://github.com/ihabunek/twitch-dl
synced 2024-08-30 18:32:25 +00:00
Better parsing of twitch urls, strip query
This commit is contained in:
parent
5b1b1ba4ff
commit
2a382087dd
@ -163,7 +163,7 @@ def parse_video_id(video_id):
|
||||
if re.search(r"^\d+$", video_id):
|
||||
return int(video_id)
|
||||
|
||||
match = re.search(r"^https://www.twitch.tv/videos/(\d+)$", video_id)
|
||||
match = re.search(r"^https://www.twitch.tv/videos/(\d+)(\?.+)?$", video_id)
|
||||
if match:
|
||||
return int(match.group(1))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user