Skip to content

Commit

Permalink
[curiositystream:collection] Extend _VALID_URL (closes #26326, closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Jun 20, 2021
1 parent 47f2f2f commit 2ccee8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion youtube_dl/extractor/curiositystream.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _real_extract(self, url):

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': {
Expand All @@ -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):
Expand Down

0 comments on commit 2ccee8d

Please sign in to comment.