[nebula] Move to nebula.app

Closes #272
Tested by: Lamieur
This commit is contained in:
pukkandan 2021-04-26 17:54:06 +05:30
parent be6202f12b
commit 1ad047d0f7
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

View File

@ -15,10 +15,10 @@
class NebulaIE(InfoExtractor): class NebulaIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?watchnebula\.com/videos/(?P<id>[-\w]+)' _VALID_URL = r'https?://(?:www\.)?(?:watchnebula\.com|nebula\.app)/videos/(?P<id>[-\w]+)'
_TESTS = [ _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', 'md5': 'fe79c4df8b3aa2fea98a93d027465c7e',
'info_dict': { 'info_dict': {
'id': '5c271b40b13fd613090034fd', 'id': '5c271b40b13fd613090034fd',
@ -36,7 +36,7 @@ class NebulaIE(InfoExtractor):
'skip': 'All Nebula content requires authentication', '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', 'md5': '6d4edd14ce65720fa63aba5c583fb328',
'info_dict': { 'info_dict': {
'id': '5e7e78171aaf320001fbd6be', 'id': '5e7e78171aaf320001fbd6be',
@ -54,7 +54,7 @@ class NebulaIE(InfoExtractor):
'skip': 'All Nebula content requires authentication', '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', 'md5': '8c7d272910eea320f6f8e6d3084eecf5',
'info_dict': { 'info_dict': {
'id': '5e779ebdd157bc0001d1c75a', 'id': '5e779ebdd157bc0001d1c75a',
@ -71,6 +71,10 @@ class NebulaIE(InfoExtractor):
}, },
'skip': 'All Nebula content requires authentication', 'skip': 'All Nebula content requires authentication',
}, },
{
'url': 'https://watchnebula.com/videos/money-episode-1-the-draw',
'only_matching': True,
},
] ]
_NETRC_MACHINE = 'watchnebula' _NETRC_MACHINE = 'watchnebula'