From 6b26bcd7a281774bd587e1e037426079b3e0412b Mon Sep 17 00:00:00 2001 From: garret Date: Mon, 19 Jun 2023 01:11:04 +0100 Subject: update tests one of these days i should look in to a way to do this automatically --- yt_dlp_plugins/extractor/radiko.py | 56 +++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index ead6cae..a22e787 100755 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -618,11 +618,11 @@ class RadikoLiveIE(_RadikoBaseIE): class RadikoTimeFreeIE(_RadikoBaseIE): _VALID_URL = r"https?://(?:www\.)?radiko\.jp/#!/ts/(?P[A-Z0-9-_]+)/(?P\d+)" _TESTS = [{ - "url": "https://radiko.jp/#!/ts/INT/20230505230000", + "url": "https://radiko.jp/#!/ts/INT/20230616230000", "info_dict": { "title": "TOKYO MOON", "ext": "m4a", - "id": "INT-20230505230000", + "id": "INT-20230616230000", "live_status": "was_live", "tags": ["松浦俊夫"], "description": "md5:804d83142a1ef1dfde48c44fb531482a", @@ -634,17 +634,17 @@ class RadikoTimeFreeIE(_RadikoBaseIE): "uploader_url": "https://www.interfm.co.jp/", "channel": "interfm", "channel_url": "https://www.interfm.co.jp/", - "timestamp": 1683295200, - "upload_date": "20230505", - "release_date": "20230505", - "release_timestamp": 1683298800, + "timestamp": 1686924000, + "upload_date": "20230616", + "release_date": "20230616", + "release_timestamp": 1686927600, }, }, { - "url": "https://radiko.jp/#!/ts/NORTHWAVE/20230507173000", + "url": "https://radiko.jp/#!/ts/NORTHWAVE/20230618173000", "info_dict": { "title": "角松敏生 My BLUES LIFE", - "id": "NORTHWAVE-20230507173000", + "id": "NORTHWAVE-20230618173000", "ext": "m4a", "channel_id": "NORTHWAVE", "thumbnail": "https://radiko.jp/res/program/DEFAULT_IMAGE/NORTHWAVE/cwqcdppldk.jpg", @@ -657,21 +657,21 @@ class RadikoTimeFreeIE(_RadikoBaseIE): "cast": ["角松\u3000敏生"], "series": "角松敏生 My BLUES LIFE", "description": "md5:027860a5731c04779b6720047c7b8b59", - "upload_date": "20230507", - "release_timestamp": 1683450000, - "timestamp": 1683448200, - "release_date": "20230507", + "upload_date": "20230618", + "release_timestamp": 1687078800, + "timestamp": 1687077000, + "release_date": "20230618", }, }, { # late-night show, see comment in _unfuck_day - "url": "https://radiko.jp/#!/ts/TBS/20230506030000", + "url": "https://radiko.jp/#!/ts/TBS/20230617030000", "info_dict": { - "id": "TBS-20230506030000", + "id": "TBS-20230617030000", "ext": "m4a", "title": "CITY CHILL CLUB", - "cast": ["イハラカンタロウ"], + "cast": ["Mississippi Khaki Hair"], "thumbnail": "https://radiko.jp/res/program/DEFAULT_IMAGE/TBS/xxeimdxszs.jpg", - "description": "md5:f60b1012f0606b336660416598d82043", + "description": "md5:6b0401e5587c56abfabb695313db7057", "tags": ["CCC905", "音楽との出会いが楽しめる", "人気アーティストトーク", "音楽プロデューサー出演", "ドライブ中におすすめ", "寝る前におすすめ", "学生におすすめ"], "channel": "TBSラジオ", "uploader_url": "https://www.tbsradio.jp/", @@ -680,22 +680,22 @@ class RadikoTimeFreeIE(_RadikoBaseIE): "duration": 7200, "series": "CITY CHILL CLUB", "live_status": "was_live", - "timestamp": 1683309600, - "upload_date": "20230505", - "release_timestamp": 1683316800, - "release_date": "20230505", + "timestamp": 1686938400, + "upload_date": "20230616", + "release_timestamp": 1686945600, + "release_date": "20230616", }, }, { # early-morning show, same reason - "url": "https://radiko.jp/#!/ts/TBS/20230504050000", + "url": "https://radiko.jp/#!/ts/TBS/20230619050000", "info_dict": { "title": "生島ヒロシのおはよう定食・一直線", - "id": "TBS-20230504050000", + "id": "TBS-20230619050000", "ext": "m4a", - "cast": ["生島\u3000ヒロシ", "齋藤\u3000孝"], + "cast": ["生島\u3000ヒロシ"], "channel": "TBSラジオ", "thumbnail": "https://radiko.jp/res/program/DEFAULT_IMAGE/TBS/ch3vcvtc5e.jpg", - "description": "md5:26dba9e22df6883c072067cdc5ac0511", + "description": "md5:6cb392cb140261acd8a2f7c63314c9e8", "series": "生島ヒロシのおはよう定食・一直線", "tags": ["生島ヒロシ", "健康", "檀れい", "朝のニュースを効率良く"], "channel_url": "https://www.tbsradio.jp/", @@ -703,10 +703,10 @@ class RadikoTimeFreeIE(_RadikoBaseIE): "channel_id": "TBS", "duration": 5400, "live_status": "was_live", - "release_timestamp": 1683149400, - "release_date": "20230503", - "upload_date": "20230503", - "timestamp": 1683144000, + "release_timestamp": 1687123800, + "release_date": "20230618", + "upload_date": "20230618", + "timestamp": 1687118400, }, }] -- cgit v1.2.3-70-g09d2