Allow numbers in clip slugs

issue #24
This commit is contained in:
Ivan Habunek 2020-08-07 16:34:36 +02:00
parent 65663d3505
commit 8222df3670
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

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