diff options
author | garret <garret@airmail.cc> | 2023-06-13 02:25:17 +0100 |
---|---|---|
committer | garret <garret@airmail.cc> | 2023-06-13 02:25:17 +0100 |
commit | e55bdb7d6e00d8012be9cff859b69f7e9f19bff1 (patch) | |
tree | 636dcb0df84decba8fd8ef41a3c64377383110db /yt_dlp_plugins | |
parent | c1bccb5ef6b89f99aeeae25010a17d70a4b28afa (diff) | |
download | yt-dlp-rajiko-e55bdb7d6e00d8012be9cff859b69f7e9f19bff1.tar.gz yt-dlp-rajiko-e55bdb7d6e00d8012be9cff859b69f7e9f19bff1.tar.bz2 yt-dlp-rajiko-e55bdb7d6e00d8012be9cff859b69f7e9f19bff1.zip |
add ShareIE test
Diffstat (limited to 'yt_dlp_plugins')
-rwxr-xr-x | yt_dlp_plugins/extractor/radiko.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index 4e7d0e2..eadef18 100755 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -840,6 +840,30 @@ class RadikoSearchIE(_RadikoBaseIE): class RadikoShareIE(_RadikoBaseIE): _VALID_URL = r"https?://(?:www\.)?radiko\.jp/share/" + _TESTS = [{ + # 29-hour time -> 24-hour time + "url": "http://radiko.jp/share/?sid=FMT&t=20230612240000", + "info_dict": { + "ext": "m4a", + "id": "FMT-20230613000000", + "title": "JET STREAM", + 'channel_url': 'https://www.tfm.co.jp/', + 'duration': 3300, + 'timestamp': 1686582000, + 'channel_id': 'FMT', + 'cast': ['福山\u3000雅治'], + 'channel': 'TOKYO FM', + 'thumbnail': 'md5:e7b291ff01e2ffdf634851ec9a04cd3e', + 'series': 'JET STREAM', + 'uploader_url': 'https://www.tfm.co.jp/', + 'release_date': '20230612', + 'release_timestamp': 1686585300, + 'description': 'md5:bae47b6fb24d96a75b20db8a986b9cfc', + 'upload_date': '20230612', + 'tags': ['福山雅治', '夜間飛行', '音楽との出会いが楽しめる', '朗読を楽しめる', '寝る前に聴きたい'], + 'live_status': 'was_live', + } + }] def _real_extract(self, url): queries = parse_qs(url) |