From aa0317f209168ca4090f79064eb212e6a3a19e08 Mon Sep 17 00:00:00 2001 From: bergoid Date: Tue, 13 Sep 2022 22:14:13 +0200 Subject: [PATCH] flake8 --- yt_dlp/extractor/canvas.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/yt_dlp/extractor/canvas.py b/yt_dlp/extractor/canvas.py index 471d3d34b..0cea464d6 100644 --- a/yt_dlp/extractor/canvas.py +++ b/yt_dlp/extractor/canvas.py @@ -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, } -