diff options
author | garret <garret@airmail.cc> | 2024-08-06 09:00:57 +0100 |
---|---|---|
committer | garret <garret@airmail.cc> | 2024-08-06 15:29:05 +0100 |
commit | 0768c546d04eb70e74b47f358c71ea1bab9e06db (patch) | |
tree | eca5be920421057468f700508408f05bfaada87c /yt_dlp_plugins/extractor/radiko_mobile.py | |
parent | 210f3a8678c88b95c1fc568de6aaff49e1584144 (diff) | |
download | yt-dlp-rajiko-0768c546d04eb70e74b47f358c71ea1bab9e06db.tar.gz yt-dlp-rajiko-0768c546d04eb70e74b47f358c71ea1bab9e06db.tar.bz2 yt-dlp-rajiko-0768c546d04eb70e74b47f358c71ea1bab9e06db.zip |
add test for mobile episodes
parity! (except channel/uploader_url)
Diffstat (limited to 'yt_dlp_plugins/extractor/radiko_mobile.py')
-rw-r--r-- | yt_dlp_plugins/extractor/radiko_mobile.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/yt_dlp_plugins/extractor/radiko_mobile.py b/yt_dlp_plugins/extractor/radiko_mobile.py index d3793d0..14be03e 100644 --- a/yt_dlp_plugins/extractor/radiko_mobile.py +++ b/yt_dlp_plugins/extractor/radiko_mobile.py @@ -28,6 +28,35 @@ class _RadikoMobileBaseIE(_RadikoBaseIE): class RadikoMobileEventIE(_RadikoMobileBaseIE): _VALID_URL = r"https?://(?:www\.)?radiko\.jp/mobile/events/(?P<id>[0-9-]+$)" + _TESTS = [{ + "url": "https://radiko.jp/mobile/events/10282949", + "info_dict": { + "live_status": "was_live", + "ext": "m4a", + "id": "10282949", + + "title": "TOKYO MOON", + "series": "Tokyo Moon", + "description": "md5:20e68d2f400a391fa34d4e7c8c702cb8", + "chapters": "count:15", + "thumbnail": "https://program-static.cf.radiko.jp/ehwtw6mcvy.jpg", + + "upload_date": "20240802", + "timestamp": 1722607200.0, + "release_date": "20240802", + "release_timestamp": 1722610800.0, + "duration": 3600, + + "channel": "interfm", + "channel_id": "INT", + "uploader": "interfm", + "uploader_id": "INT", + + "cast": ["松浦俊夫"], + "tags": ["松浦俊夫"], + }, + }] + def _get_programme_meta(self, program, actors=None): if actors is not None: |