[curiositystream:collection] Extend _VALID_URL (closes #26326, closes #29117)
authorSergey M․ <dstftw@gmail.com>
Sun, 20 Jun 2021 18:54:52 +0000 (01:54 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 20 Jun 2021 18:54:52 +0000 (01:54 +0700)
youtube_dl/extractor/curiositystream.py

index ae64a07d719caa6cf09540864e7cc962ad481ae6..48ff3043252a8ace79506e39f4453de425d4ea82 100644 (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):