diff options
author | monnef <1975567+mnn@users.noreply.github.com> | 2022-12-29 08:47:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-29 13:17:23 +0530 |
commit | 6b71d186dda5c71b8ff2ec665cbda6f9d4ffb06e (patch) | |
tree | a02b21e10d8c96f1f6ddd79cc9eebe893db75b83 | |
parent | 074b2fae9076221faaa8697381428131ad968dc9 (diff) | |
download | hypervideo-pre-6b71d186dda5c71b8ff2ec665cbda6f9d4ffb06e.tar.lz hypervideo-pre-6b71d186dda5c71b8ff2ec665cbda6f9d4ffb06e.tar.xz hypervideo-pre-6b71d186dda5c71b8ff2ec665cbda6f9d4ffb06e.zip |
[extractor/curiositystream] Fix auth (#5730)
Authored by: mnn
-rw-r--r-- | yt_dlp/extractor/curiositystream.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/yt_dlp/extractor/curiositystream.py b/yt_dlp/extractor/curiositystream.py index 26cf24fbb..941cf4e79 100644 --- a/yt_dlp/extractor/curiositystream.py +++ b/yt_dlp/extractor/curiositystream.py @@ -1,4 +1,5 @@ import re +import urllib.parse from .common import InfoExtractor from ..compat import compat_str @@ -23,7 +24,7 @@ class CuriosityStreamBaseIE(InfoExtractor): auth_cookie = self._get_cookies('https://curiositystream.com').get('auth_token') if auth_cookie: self.write_debug('Obtained auth_token cookie') - self._auth_token = auth_cookie.value + self._auth_token = urllib.parse.unquote(auth_cookie.value) if self._auth_token: headers['X-Auth-Token'] = self._auth_token result = self._download_json( @@ -54,8 +55,11 @@ class CuriosityStreamIE(CuriosityStreamBaseIE): 'description': 'Vint Cerf, Google\'s Chief Internet Evangelist, describes how he and Bob Kahn created the internet.', 'channel': 'Curiosity Stream', 'categories': ['Technology', 'Interview'], - 'average_rating': 96.79, + 'average_rating': float, 'series_id': '2', + 'thumbnail': r're:https://img.curiositystream.com/.+\.jpg', + 'tags': [], + 'duration': 158 }, 'params': { # m3u8 download |