From 1ad047d0f711512473a7ea07404f653338ea3049 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 26 Apr 2021 17:54:06 +0530 Subject: [PATCH] [nebula] Move to nebula.app Closes #272 Tested by: Lamieur --- yt_dlp/extractor/nebula.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/yt_dlp/extractor/nebula.py b/yt_dlp/extractor/nebula.py index 3e1b2efaf..1a0a394f1 100644 --- a/yt_dlp/extractor/nebula.py +++ b/yt_dlp/extractor/nebula.py @@ -15,10 +15,10 @@ from ..utils import ( class NebulaIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?watchnebula\.com/videos/(?P[-\w]+)' + _VALID_URL = r'https?://(?:www\.)?(?:watchnebula\.com|nebula\.app)/videos/(?P[-\w]+)' _TESTS = [ { - 'url': 'https://watchnebula.com/videos/that-time-disney-remade-beauty-and-the-beast', + 'url': 'https://nebula.app/videos/that-time-disney-remade-beauty-and-the-beast', 'md5': 'fe79c4df8b3aa2fea98a93d027465c7e', 'info_dict': { 'id': '5c271b40b13fd613090034fd', @@ -36,7 +36,7 @@ class NebulaIE(InfoExtractor): 'skip': 'All Nebula content requires authentication', }, { - 'url': 'https://watchnebula.com/videos/the-logistics-of-d-day-landing-craft-how-the-allies-got-ashore', + 'url': 'https://nebula.app/videos/the-logistics-of-d-day-landing-craft-how-the-allies-got-ashore', 'md5': '6d4edd14ce65720fa63aba5c583fb328', 'info_dict': { 'id': '5e7e78171aaf320001fbd6be', @@ -54,7 +54,7 @@ class NebulaIE(InfoExtractor): 'skip': 'All Nebula content requires authentication', }, { - 'url': 'https://watchnebula.com/videos/money-episode-1-the-draw', + 'url': 'https://nebula.app/videos/money-episode-1-the-draw', 'md5': '8c7d272910eea320f6f8e6d3084eecf5', 'info_dict': { 'id': '5e779ebdd157bc0001d1c75a', @@ -71,6 +71,10 @@ class NebulaIE(InfoExtractor): }, 'skip': 'All Nebula content requires authentication', }, + { + 'url': 'https://watchnebula.com/videos/money-episode-1-the-draw', + 'only_matching': True, + }, ] _NETRC_MACHINE = 'watchnebula'