From 3a61e61226f85769a1216a63b1e012cbc4011d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hegesippe=20=C3=8Bspace?= Date: Fri, 12 Feb 2021 22:57:08 +0100 Subject: [PATCH] Add underscore as an allow char for clip extra ID --- twitchdl/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/twitchdl/utils.py b/twitchdl/utils.py index 169c5e9..a93fdd9 100644 --- a/twitchdl/utils.py +++ b/twitchdl/utils.py @@ -69,9 +69,9 @@ VIDEO_PATTERNS = [ ] CLIP_PATTERNS = [ - r"^(?P[A-Za-z0-9]+(?:-[A-Za-z0-9]+)?)$", - r"^https://(www.)?twitch.tv/\w+/clip/(?P[A-Za-z0-9]+(?:-[A-Za-z0-9]+)?)(\?.+)?$", - r"^https://clips.twitch.tv/(?P[A-Za-z0-9]+(?:-[A-Za-z0-9]+)?)(\?.+)?$", + r"^(?P[A-Za-z0-9]+(?:-[A-Za-z0-9_]+)?)$", + r"^https://(www.)?twitch.tv/\w+/clip/(?P[A-Za-z0-9]+(?:-[A-Za-z0-9_]+)?)(\?.+)?$", + r"^https://clips.twitch.tv/(?P[A-Za-z0-9]+(?:-[A-Za-z0-9_]+)?)(\?.+)?$", ]