|
|
@ -23,6 +23,11 @@ class CuriosityStreamBaseIE(InfoExtractor):
|
|
|
|
|
|
|
|
|
|
|
|
def _call_api(self, path, video_id, query=None):
|
|
|
|
def _call_api(self, path, video_id, query=None):
|
|
|
|
headers = {}
|
|
|
|
headers = {}
|
|
|
|
|
|
|
|
if not self._auth_token:
|
|
|
|
|
|
|
|
auth_cookie = self._get_cookies('https://curiositystream.com').get('auth_token')
|
|
|
|
|
|
|
|
if auth_cookie:
|
|
|
|
|
|
|
|
self.write_debug('Obtained auth_token cookie')
|
|
|
|
|
|
|
|
self._auth_token = cookie.value
|
|
|
|
if self._auth_token:
|
|
|
|
if self._auth_token:
|
|
|
|
headers['X-Auth-Token'] = self._auth_token
|
|
|
|
headers['X-Auth-Token'] = self._auth_token
|
|
|
|
result = self._download_json(
|
|
|
|
result = self._download_json(
|
|
|
|