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/soundcloud.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/soundcloud.py')
-rw-r--r-- | yt_dlp/extractor/soundcloud.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/soundcloud.py b/yt_dlp/extractor/soundcloud.py index 6dfa50c60..9e4c8cf25 100644 --- a/yt_dlp/extractor/soundcloud.py +++ b/yt_dlp/extractor/soundcloud.py @@ -67,7 +67,7 @@ class SoundcloudBaseIE(InfoExtractor): _HEADERS = {} def _store_client_id(self, client_id): - self._downloader.cache.store('soundcloud', 'client_id', client_id) + self.cache.store('soundcloud', 'client_id', client_id) def _update_client_id(self): webpage = self._download_webpage('https://soundcloud.com/', None) @@ -104,7 +104,7 @@ class SoundcloudBaseIE(InfoExtractor): raise def _initialize_pre_login(self): - self._CLIENT_ID = self._downloader.cache.load('soundcloud', 'client_id') or 'a3e059563d7fd3372b49b37f00a00bcf' + self._CLIENT_ID = self.cache.load('soundcloud', 'client_id') or 'a3e059563d7fd3372b49b37f00a00bcf' def _perform_login(self, username, password): if username != 'oauth': |