diff options
author | garret1317 <garret@airmail.cc> | 2024-11-22 22:16:19 +0000 |
---|---|---|
committer | garret1317 <garret@airmail.cc> | 2024-11-22 22:17:33 +0000 |
commit | 8c2f5d394d28a683e8f3e6ddf233be84f1ae73c3 (patch) | |
tree | 4c1f171fef78e8c7cd868728b2992d805a3b562d /yt_dlp_plugins | |
parent | 6661c60ece44309a6a28802d3d55f76d7c332148 (diff) | |
download | yt-dlp-rajiko-8c2f5d394d28a683e8f3e6ddf233be84f1ae73c3.tar.gz yt-dlp-rajiko-8c2f5d394d28a683e8f3e6ddf233be84f1ae73c3.tar.bz2 yt-dlp-rajiko-8c2f5d394d28a683e8f3e6ddf233be84f1ae73c3.zip |
add debug logs for account sign-in process
Diffstat (limited to 'yt_dlp_plugins')
-rw-r--r-- | yt_dlp_plugins/extractor/radiko.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index 93f0c93..3996c60 100644 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -194,6 +194,7 @@ class _RadikoBaseIE(InfoExtractor): self.write_debug(cachedata) if cachedata is not None: if tf30 and not cachedata.get("tf30"): + self.write_debug("Cached token doesn't have timefree 30, getting a new one") return self._negotiate_token(station_region, tf30=True) auth_headers = cachedata.get("token") @@ -453,6 +454,7 @@ class RadikoTimeFreeIE(_RadikoBaseIE): data=urlencode_postdata({'mail': username, 'pass': password})) self._has_tf30 = '2' in login_info.get('privileges') # areafree = 1, timefree30 = 2, double plan = both + self.write_debug({**login_info, "radiko_session": "PRIVATE", "member_ukey": "PRIVATE"}) except ExtractorError as error: if isinstance(error.cause, HTTPError) and error.cause.status == 401: raise ExtractorError('Invalid username and/or password', expected=True) @@ -465,6 +467,7 @@ class RadikoTimeFreeIE(_RadikoBaseIE): return account_info = self._download_json('https://radiko.jp/ap/member/webapi/v2/member/login/check', None, note='Checking account status from cookies', expected_status=400) + self.write_debug({**account_info, "user_key": "PRIVATE"}) self._has_tf30 = account_info.get('timefreeplus') == '1' return self._has_tf30 |