1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-14 11:07:50 +01:00

[curiositystream:collection] Extend _VALID_URL (closes #26326, closes #29117)

This commit is contained in:
Sergey M․ 2021-06-21 01:54:52 +07:00
parent 47f2f2fbe9
commit 2ccee8db74
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -145,7 +145,7 @@ class CuriosityStreamIE(CuriosityStreamBaseIE):
class CuriosityStreamCollectionIE(CuriosityStreamBaseIE):
IE_NAME = 'curiositystream:collection'
_VALID_URL = r'https?://(?:app\.)?curiositystream\.com/(?:collection|series)/(?P<id>\d+)'
_VALID_URL = r'https?://(?:app\.)?curiositystream\.com/(?:collections?|series)/(?P<id>\d+)'
_TESTS = [{
'url': 'https://app.curiositystream.com/collection/2',
'info_dict': {
@ -157,6 +157,9 @@ class CuriosityStreamCollectionIE(CuriosityStreamBaseIE):
}, {
'url': 'https://curiositystream.com/series/2',
'only_matching': True,
}, {
'url': 'https://curiositystream.com/collections/36',
'only_matching': True,
}]
def _real_extract(self, url):