From 2a382087dd57d762ed7197118a1eebc80c01773a Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Wed, 20 Feb 2019 16:04:23 +0100 Subject: [PATCH] Better parsing of twitch urls, strip query --- twitchdl/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitchdl/commands.py b/twitchdl/commands.py index 8798150..8416b8f 100644 --- a/twitchdl/commands.py +++ b/twitchdl/commands.py @@ -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))