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