Add underscore as an allow char for clip extra ID

This commit is contained in:
Hegesippe Ëspace 2021-02-12 22:57:08 +01:00 committed by Ivan Habunek
parent 8ddfad51bc
commit 3a61e61226

View File

@ -69,9 +69,9 @@ VIDEO_PATTERNS = [
]
CLIP_PATTERNS = [
r"^(?P<slug>[A-Za-z0-9]+(?:-[A-Za-z0-9]+)?)$",
r"^https://(www.)?twitch.tv/\w+/clip/(?P<slug>[A-Za-z0-9]+(?:-[A-Za-z0-9]+)?)(\?.+)?$",
r"^https://clips.twitch.tv/(?P<slug>[A-Za-z0-9]+(?:-[A-Za-z0-9]+)?)(\?.+)?$",
r"^(?P<slug>[A-Za-z0-9]+(?:-[A-Za-z0-9_]+)?)$",
r"^https://(www.)?twitch.tv/\w+/clip/(?P<slug>[A-Za-z0-9]+(?:-[A-Za-z0-9_]+)?)(\?.+)?$",
r"^https://clips.twitch.tv/(?P<slug>[A-Za-z0-9]+(?:-[A-Za-z0-9_]+)?)(\?.+)?$",
]