diff --git a/yt_dlp/extractor/radiko.py b/yt_dlp/extractor/radiko.py index 7efbce7c1..d26edb8a8 100644 --- a/yt_dlp/extractor/radiko.py +++ b/yt_dlp/extractor/radiko.py @@ -54,7 +54,7 @@ def _perform_login(self, username, password): raise ExtractorError('Invalid username and/or password', expected=True) raise - def _check_account(self): + def _check_tf30(self): if self._has_tf30 is not None: return self._has_tf30 if self._get_cookies('https://radiko.jp').get('radiko_session') is None: @@ -145,13 +145,13 @@ def _find_program(self, video_id, station, cursor): if broadcast_day_end + datetime.timedelta(days=30) < now: self.raise_no_formats('Programme is no longer available.', video_id=video_id, expected=True) - elif broadcast_day_end + datetime.timedelta(days=7) < now and not self._check_account(): + elif broadcast_day_end + datetime.timedelta(days=7) < now and not self._check_tf30(): self.raise_login_required('Programme is only available with a Timefree 30 subscription', metadata_available=True) station_program = self._download_xml( f'https://api.radiko.jp/program/v3/date/{broadcast_day_str}/station/{station}.xml', station, - note=f'Downloading programme data for {broadcast_day_str}') + note=f'Downloading programme information for {broadcast_day_str}') prog = None for p in station_program.findall('.//prog'):