diff --git a/tests/test_patterns.py b/tests/test_patterns.py index 004c792..0f273f5 100644 --- a/tests/test_patterns.py +++ b/tests/test_patterns.py @@ -7,6 +7,7 @@ TEST_VIDEO_PATTERNS = [ ("702689313", "https://twitch.tv/videos/702689313"), ("702689313", "https://www.twitch.tv/videos/702689313"), ("702689313", "https://m.twitch.tv/videos/702689313"), + ("2223719525", "https://www.twitch.tv/r0dn3y/video/2223719525"), ] TEST_CLIP_PATTERNS = { diff --git a/twitchdl/utils.py b/twitchdl/utils.py index b10e040..53e7a30 100644 --- a/twitchdl/utils.py +++ b/twitchdl/utils.py @@ -85,6 +85,7 @@ def titlify(value: str) -> str: VIDEO_PATTERNS = [ r"^(?P\d+)?$", r"^https://(www\.|m\.)?twitch\.tv/videos/(?P\d+)(\?.+)?$", + r"^https://(www\.|m\.)?twitch\.tv/\w+/video/(?P\d+)(\?.+)?$", ] CLIP_PATTERNS = [