diff options
author | garret <garret@airmail.cc> | 2023-05-08 20:42:43 +0100 |
---|---|---|
committer | garret <garret@airmail.cc> | 2023-05-08 23:20:58 +0100 |
commit | 33fe77a62487b5514974a9a1518b1ec1e4c22044 (patch) | |
tree | 203a5409161755891240cf095968a2c268e189f2 /yt_dlp_plugins/extractor | |
parent | 9fa2b91f0bde316166413593bb8d6ef0e319587d (diff) | |
download | yt-dlp-rajiko-33fe77a62487b5514974a9a1518b1ec1e4c22044.tar.gz yt-dlp-rajiko-33fe77a62487b5514974a9a1518b1ec1e4c22044.tar.bz2 yt-dlp-rajiko-33fe77a62487b5514974a9a1518b1ec1e4c22044.zip |
add debuggering stuff
Diffstat (limited to 'yt_dlp_plugins/extractor')
-rwxr-xr-x | yt_dlp_plugins/extractor/radiko.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index 863c9aa..7ac4aee 100755 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -433,9 +433,11 @@ class _RadikoBaseIE(InfoExtractor): def _negotiate_token(self, station_region): info = self._generate_random_info() - _, auth1_handle = self._download_webpage_handle('https://radiko.jp/v2/api/auth1', None, + response, auth1_handle = self._download_webpage_handle('https://radiko.jp/v2/api/auth1', None, 'Authenticating: step 1', headers = self._generate_random_info()) + self.write_debug(response) + auth1_header = auth1_handle.info() auth_token = auth1_header['X-Radiko-AuthToken'] key_length = int(auth1_header['X-Radiko-KeyLength']) @@ -478,6 +480,7 @@ class _RadikoBaseIE(InfoExtractor): self._user = cachedata.get("user") response = self._download_webpage('https://radiko.jp/v2/api/auth_check', station_region, 'Checking cached token', headers = token, expected_status = 401) + self.write_debug(response) if response != "OK": token = self._negotiate_token(station_region) else: |