1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 10:24:33 +01:00

Fix flake8 error

This commit is contained in:
rj 2020-07-19 00:12:51 +01:00
parent d89e94415b
commit eb0a5a4d5a

View File

@ -26,7 +26,7 @@ class TheWeatherChannelIE(ThePlatformIE):
def _real_extract(self, url): def _real_extract(self, url):
display_id = self._match_id(url) display_id = self._match_id(url)
webpage = self._download_webpage(url, display_id) webpage = self._download_webpage(url, display_id)
video_id = self._search_regex(r'"activeVideo":{"id":"(.*?)"',webpage, 'video id') video_id = self._search_regex(r'"activeVideo":{"id":"(.*?)"', webpage, 'video id')
video_data = self._download_json( video_data = self._download_json(
'https://dsx.weather.com/cms/v4/asset-collection/en_US/' + video_id, video_id) 'https://dsx.weather.com/cms/v4/asset-collection/en_US/' + video_id, video_id)
seo_meta = video_data.get('seometa', {}) seo_meta = video_data.get('seometa', {})