Modify valid URL regex to allow hyphens in collection id

This commit is contained in:
Michael Tilbury 2019-04-14 13:14:07 -04:00
parent b2633030ce
commit fb56a16673

View File

@ -437,7 +437,7 @@ class TwitchVideosBaseIE(TwitchPlaylistBaseIE):
class TwitchCollectionsIE(TwitchBaseIE):
IE_NAME = 'twitch:collections'
_VALID_URL = r'%s/collections/(?P<id>[\w\d]+)' % TwitchBaseIE._VALID_URL_BASE
_VALID_URL = r'%s/collections/(?P<id>[\w\d\-]+)' % TwitchBaseIE._VALID_URL_BASE
_TESTS = [{
'url': 'https://www.twitch.tv/collections/myIbIFkZphQSbQ',