diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-23 09:44:22 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-23 09:57:26 +0530 |
commit | 9809740ba5cc5daf53e690d104a37aa6545e53f9 (patch) | |
tree | 77a43dca6247d0ce1045cd81ad1b0c774028e9ff /yt_dlp/extractor/cbc.py | |
parent | f67baae17e76997c13d35f65f50be633106837e0 (diff) | |
download | hypervideo-pre-9809740ba5cc5daf53e690d104a37aa6545e53f9.tar.lz hypervideo-pre-9809740ba5cc5daf53e690d104a37aa6545e53f9.tar.xz hypervideo-pre-9809740ba5cc5daf53e690d104a37aa6545e53f9.zip |
[extractor, cleanup] Reduce direct use of `_downloader`
Diffstat (limited to 'yt_dlp/extractor/cbc.py')
-rw-r--r-- | yt_dlp/extractor/cbc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/cbc.py b/yt_dlp/extractor/cbc.py index cac3f1e9d..999b7bc53 100644 --- a/yt_dlp/extractor/cbc.py +++ b/yt_dlp/extractor/cbc.py @@ -304,13 +304,13 @@ class CBCGemIE(InfoExtractor): def _get_claims_token(self, email, password): if not self.claims_token_valid(): self._claims_token = self._new_claims_token(email, password) - self._downloader.cache.store(self._NETRC_MACHINE, 'claims_token', self._claims_token) + self.cache.store(self._NETRC_MACHINE, 'claims_token', self._claims_token) return self._claims_token def _real_initialize(self): if self.claims_token_valid(): return - self._claims_token = self._downloader.cache.load(self._NETRC_MACHINE, 'claims_token') + self._claims_token = self.cache.load(self._NETRC_MACHINE, 'claims_token') def _find_secret_formats(self, formats, video_id): """ Find a valid video url and convert it to the secret variant """ |