mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-01-07 17:16:08 +00:00
[curiositystream] don't cache auth token
This commit is contained in:
parent
4191779dcd
commit
b207d5ebd4
|
@ -33,10 +33,6 @@ class CuriosityStreamBaseIE(InfoExtractor):
|
|||
return result['data']
|
||||
|
||||
def _real_initialize(self):
|
||||
if not self._auth_token:
|
||||
user = self._downloader.cache.load('curiositystream', 'user') or {}
|
||||
self._auth_token = user.get('auth_token')
|
||||
if not self._auth_token:
|
||||
(email, password) = self._get_login_info()
|
||||
if email is None:
|
||||
return
|
||||
|
@ -47,10 +43,6 @@ class CuriosityStreamBaseIE(InfoExtractor):
|
|||
}))
|
||||
self._handle_errors(result)
|
||||
self._auth_token = result['message']['auth_token']
|
||||
self._downloader.cache.store(
|
||||
'curiositystream', 'user', {
|
||||
'auth_token': self._auth_token,
|
||||
})
|
||||
|
||||
def _extract_media_info(self, media):
|
||||
video_id = compat_str(media['id'])
|
||||
|
|
Loading…
Reference in a new issue