From 696bf76b8b75bc43ee7a071fb8fc346fb0da8ba7 Mon Sep 17 00:00:00 2001 From: garret1317 Date: Thu, 7 Nov 2024 18:06:52 +0000 Subject: [PATCH] better words --- yt_dlp/extractor/radiko.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 @@ class RadikoBaseIE(InfoExtractor): 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 @@ class RadikoBaseIE(InfoExtractor): 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'):