From fb56a16673ed7ff43b7947936d2ac501e5ae3407 Mon Sep 17 00:00:00 2001 From: Michael Tilbury Date: Sun, 14 Apr 2019 13:14:07 -0400 Subject: [PATCH] Modify valid URL regex to allow hyphens in collection id --- youtube_dl/extractor/twitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py index 4373337f0..d8b98803e 100644 --- a/youtube_dl/extractor/twitch.py +++ b/youtube_dl/extractor/twitch.py @@ -437,7 +437,7 @@ class TwitchVideosBaseIE(TwitchPlaylistBaseIE): class TwitchCollectionsIE(TwitchBaseIE): IE_NAME = 'twitch:collections' - _VALID_URL = r'%s/collections/(?P[\w\d]+)' % TwitchBaseIE._VALID_URL_BASE + _VALID_URL = r'%s/collections/(?P[\w\d\-]+)' % TwitchBaseIE._VALID_URL_BASE _TESTS = [{ 'url': 'https://www.twitch.tv/collections/myIbIFkZphQSbQ',