mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-08 17:33:16 +00:00
flake8
This commit is contained in:
parent
d39c122abd
commit
aa0317f209
|
@ -7,11 +7,8 @@
|
|||
from ..utils import (
|
||||
ExtractorError,
|
||||
clean_html,
|
||||
extract_attributes,
|
||||
float_or_none,
|
||||
get_element_by_class,
|
||||
int_or_none,
|
||||
merge_dicts,
|
||||
str_or_none,
|
||||
strip_or_none,
|
||||
url_or_none,
|
||||
|
@ -53,8 +50,8 @@ def _real_extract(self, url):
|
|||
data = None
|
||||
|
||||
vrtnutoken = self._download_json('https://token.vrt.be/refreshtoken',
|
||||
video_id, note='refreshtoken: Retrieve vrtnutoken',
|
||||
errnote='refreshtoken failed')['vrtnutoken']
|
||||
video_id, note='refreshtoken: Retrieve vrtnutoken',
|
||||
errnote='refreshtoken failed')['vrtnutoken']
|
||||
headers = self.geo_verification_headers()
|
||||
headers.update({'Content-Type': 'application/json; charset=utf-8'})
|
||||
vrtPlayerToken = self._download_json(
|
||||
|
@ -306,7 +303,7 @@ def _real_extract(self, url):
|
|||
display_id = self._match_id(url)
|
||||
|
||||
episode_data = self._download_json(f'{url.strip("/")}.model.json', display_id,
|
||||
'Downloading asset JSON', 'Unable to download asset JSON')
|
||||
'Downloading asset JSON', 'Unable to download asset JSON')
|
||||
details = episode_data.get('details')
|
||||
actions = details.get('actions')
|
||||
episode_publication_id = actions[2].get('episodePublicationId')
|
||||
|
@ -368,4 +365,3 @@ def _real_extract(self, url):
|
|||
'title': title,
|
||||
'description': description,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue