Switch to new nebula URL
This commit is contained in:
parent
c0e2bcb2bc
commit
2661135893
@ -12,7 +12,7 @@ class NebulaFeed:
|
|||||||
fg = FeedGenerator()
|
fg = FeedGenerator()
|
||||||
fg.id(self.feed_url)
|
fg.id(self.feed_url)
|
||||||
fg.title('Nebula subscriptions')
|
fg.title('Nebula subscriptions')
|
||||||
fg.logo('https://nebula.app/apple-touch-icon.png')
|
fg.logo('https://nebula.tv/apple-touch-icon.png')
|
||||||
fg.subtitle('Your subscribed videos')
|
fg.subtitle('Your subscribed videos')
|
||||||
fg.link(href=self.feed_url, rel='self')
|
fg.link(href=self.feed_url, rel='self')
|
||||||
fg.language('en')
|
fg.language('en')
|
||||||
|
@ -48,7 +48,7 @@ def test_video_parsing():
|
|||||||
},
|
},
|
||||||
'thumbnail': {'240': {'original': 'https://images.watchnebula.com/p/ffcd9296-2857-469d-9c00-1c7bace3407e.jpeg?height=240&', 'webp': 'https://images.watchnebula.com/p/ffcd9296-2857-469d-9c00-1c7bace3407e.webp?height=240&'}, '480': {'original': 'https://images.watchnebula.com/p/ffcd9296-2857-469d-9c00-1c7bace3407e.jpeg?height=480&', 'webp': 'https://images.watchnebula.com/p/ffcd9296-2857-469d-9c00-1c7bace3407e.webp?height=480&'}, '720': {'original': 'https://images.watchnebula.com/p/ffcd9296-2857-469d-9c00-1c7bace3407e.jpeg?height=720&', 'webp': 'https://images.watchnebula.com/p/ffcd9296-2857-469d-9c00-1c7bace3407e.webp?height=720&'}, '1080': {'original': 'https://images.watchnebula.com/p/ffcd9296-2857-469d-9c00-1c7bace3407e.jpeg?height=1080&', 'webp': 'https://images.watchnebula.com/p/ffcd9296-2857-469d-9c00-1c7bace3407e.webp?height=1080&'}}}, # noqa
|
'thumbnail': {'240': {'original': 'https://images.watchnebula.com/p/ffcd9296-2857-469d-9c00-1c7bace3407e.jpeg?height=240&', 'webp': 'https://images.watchnebula.com/p/ffcd9296-2857-469d-9c00-1c7bace3407e.webp?height=240&'}, '480': {'original': 'https://images.watchnebula.com/p/ffcd9296-2857-469d-9c00-1c7bace3407e.jpeg?height=480&', 'webp': 'https://images.watchnebula.com/p/ffcd9296-2857-469d-9c00-1c7bace3407e.webp?height=480&'}, '720': {'original': 'https://images.watchnebula.com/p/ffcd9296-2857-469d-9c00-1c7bace3407e.jpeg?height=720&', 'webp': 'https://images.watchnebula.com/p/ffcd9296-2857-469d-9c00-1c7bace3407e.webp?height=720&'}, '1080': {'original': 'https://images.watchnebula.com/p/ffcd9296-2857-469d-9c00-1c7bace3407e.jpeg?height=1080&', 'webp': 'https://images.watchnebula.com/p/ffcd9296-2857-469d-9c00-1c7bace3407e.webp?height=1080&'}}}, # noqa
|
||||||
'attributes': ['free_sample_eligible'],
|
'attributes': ['free_sample_eligible'],
|
||||||
'share_url': 'https://nebula.app/videos/wendover-electric-vehicles-battery-problem/',
|
'share_url': 'https://nebula.tv/videos/wendover-electric-vehicles-battery-problem/',
|
||||||
'channel': None,
|
'channel': None,
|
||||||
'engagement': None,
|
'engagement': None,
|
||||||
'zype_id': '61dd99e519d76400018b94b0'
|
'zype_id': '61dd99e519d76400018b94b0'
|
||||||
@ -56,6 +56,6 @@ def test_video_parsing():
|
|||||||
video = NebulaLoader._parse_api_response(example_response)
|
video = NebulaLoader._parse_api_response(example_response)
|
||||||
assert video.title == "Electric Vehicles' Battery Problem"
|
assert video.title == "Electric Vehicles' Battery Problem"
|
||||||
assert video.creator == 'Wendover'
|
assert video.creator == 'Wendover'
|
||||||
assert video.url == 'https://nebula.app/videos/wendover-electric-vehicles-battery-problem/'
|
assert video.url == 'https://nebula.tv/videos/wendover-electric-vehicles-battery-problem/'
|
||||||
assert video.release_at == datetime.datetime(2022, 1, 11, 15, 3, 33, tzinfo=datetime.timezone.utc)
|
assert video.release_at == datetime.datetime(2022, 1, 11, 15, 3, 33, tzinfo=datetime.timezone.utc)
|
||||||
print(video)
|
print(video)
|
||||||
|
Loading…
Reference in New Issue
Block a user