]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/nebula.py
[funimation] Add `FunimationShowIE` (#442)
[yt-dlp.git] / yt_dlp / extractor / nebula.py
index 3e1b2efaf70dba600378389b96201ff3862dc0c0..1a0a394f1ad6488864240dd3c9b6f3369280f100 100644 (file)
 \r
 class NebulaIE(InfoExtractor):\r
 \r
-    _VALID_URL = r'https?://(?:www\.)?watchnebula\.com/videos/(?P<id>[-\w]+)'\r
+    _VALID_URL = r'https?://(?:www\.)?(?:watchnebula\.com|nebula\.app)/videos/(?P<id>[-\w]+)'\r
     _TESTS = [\r
         {\r
-            'url': 'https://watchnebula.com/videos/that-time-disney-remade-beauty-and-the-beast',\r
+            'url': 'https://nebula.app/videos/that-time-disney-remade-beauty-and-the-beast',\r
             'md5': 'fe79c4df8b3aa2fea98a93d027465c7e',\r
             'info_dict': {\r
                 'id': '5c271b40b13fd613090034fd',\r
@@ -36,7 +36,7 @@ class NebulaIE(InfoExtractor):
             'skip': 'All Nebula content requires authentication',\r
         },\r
         {\r
-            'url': 'https://watchnebula.com/videos/the-logistics-of-d-day-landing-craft-how-the-allies-got-ashore',\r
+            'url': 'https://nebula.app/videos/the-logistics-of-d-day-landing-craft-how-the-allies-got-ashore',\r
             'md5': '6d4edd14ce65720fa63aba5c583fb328',\r
             'info_dict': {\r
                 'id': '5e7e78171aaf320001fbd6be',\r
@@ -54,7 +54,7 @@ class NebulaIE(InfoExtractor):
             'skip': 'All Nebula content requires authentication',\r
         },\r
         {\r
-            'url': 'https://watchnebula.com/videos/money-episode-1-the-draw',\r
+            'url': 'https://nebula.app/videos/money-episode-1-the-draw',\r
             'md5': '8c7d272910eea320f6f8e6d3084eecf5',\r
             'info_dict': {\r
                 'id': '5e779ebdd157bc0001d1c75a',\r
@@ -71,6 +71,10 @@ class NebulaIE(InfoExtractor):
             },\r
             'skip': 'All Nebula content requires authentication',\r
         },\r
+        {\r
+            'url': 'https://watchnebula.com/videos/money-episode-1-the-draw',\r
+            'only_matching': True,\r
+        },\r
     ]\r
     _NETRC_MACHINE = 'watchnebula'\r
 \r