From 8ddfad51bc657ab73c9f7eae0f83d0e5817cd138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hegesippe=20=C3=8Bspace?= Date: Fri, 12 Feb 2021 14:49:09 +0100 Subject: [PATCH] Update clip identifier patterns New clips ID naming convention. ex: GloriousColdbloodedTortoiseRuleFive-E017utJ4DZmHVpfQ --- twitchdl/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/twitchdl/utils.py b/twitchdl/utils.py index d76f22d..169c5e9 100644 --- a/twitchdl/utils.py +++ b/twitchdl/utils.py @@ -69,9 +69,9 @@ VIDEO_PATTERNS = [ ] CLIP_PATTERNS = [ - r"^(?P[A-Za-z0-9]+)$", - r"^https://(www.)?twitch.tv/\w+/clip/(?P[A-Za-z0-9]+)(\?.+)?$", - r"^https://clips.twitch.tv/(?P[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]+)?)(\?.+)?$", ]