aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/yt_dlp_plugins/extractor
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp_plugins/extractor')
-rwxr-xr-xyt_dlp_plugins/extractor/radiko.py178
1 files changed, 94 insertions, 84 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py
index d652133..4bda6aa 100755
--- a/yt_dlp_plugins/extractor/radiko.py
+++ b/yt_dlp_plugins/extractor/radiko.py
@@ -622,95 +622,103 @@ class RadikoLiveIE(_RadikoBaseIE):
class RadikoTimeFreeIE(_RadikoBaseIE):
_VALID_URL = r"https?://(?:www\.)?radiko\.jp/#!/ts/(?P<station>[A-Z0-9-_]+)/(?P<id>\d+)"
_TESTS = [{
- "url": "https://radiko.jp/#!/ts/INT/20230616230000",
+ "url": "https://radiko.jp/#!/ts/INT/20230818230000",
"info_dict": {
+ "id": "INT-20230818230000",
"title": "TOKYO MOON",
"ext": "m4a",
- "id": "INT-20230616230000",
- "live_status": "was_live",
- "tags": ["松浦俊夫"],
- "description": "md5:804d83142a1ef1dfde48c44fb531482a",
- "duration": 3600,
- "thumbnail": "https://radiko.jp/res/program/DEFAULT_IMAGE/INT/72b3a65f-c3ee-4892-a327-adec52076d51.jpeg",
- "cast": ["松浦\u3000俊夫"],
- "series": "Tokyo Moon",
- "channel_id": "INT",
- "uploader_url": "https://www.interfm.co.jp/",
- "channel": "interfm",
- "channel_url": "https://www.interfm.co.jp/",
- "timestamp": 1686924000,
- "upload_date": "20230616",
- "release_date": "20230616",
- "release_timestamp": 1686927600,
-
+ 'tags': ['松浦俊夫'],
+ 'cast': ['松浦\u3000俊夫'],
+ 'channel_url': 'https://www.interfm.co.jp/',
+ 'channel_id': 'INT',
+ 'description': 'md5:804d83142a1ef1dfde48c44fb531482a',
+ 'upload_date': '20230818',
+ 'thumbnail': 'https://radiko.jp/res/program/DEFAULT_IMAGE/INT/72b3a65f-c3ee-4892-a327-adec52076d51.jpeg',
+ 'chapters': 'count:16',
+ 'release_timestamp': 1692370800,
+ 'live_status': 'was_live',
+ 'series': 'Tokyo Moon',
+ 'timestamp': 1692367200,
+ 'uploader_url': 'https://www.interfm.co.jp/',
+ 'uploader': 'interfm',
+ 'channel': 'interfm',
+ 'duration': 3600,
+ 'release_date': '20230818',
},
}, {
- "url": "https://radiko.jp/#!/ts/NORTHWAVE/20230618173000",
+ "url": "https://radiko.jp/#!/ts/NORTHWAVE/20230820173000",
"info_dict": {
+ "id": "NORTHWAVE-20230820173000",
"title": "角松敏生 My BLUES LIFE",
- "id": "NORTHWAVE-20230618173000",
"ext": "m4a",
- "channel_id": "NORTHWAVE",
- "thumbnail": "https://radiko.jp/res/program/DEFAULT_IMAGE/NORTHWAVE/cwqcdppldk.jpg",
- "uploader_url": "https://www.fmnorth.co.jp/",
- "duration": 1800,
- "channel": "FM NORTH WAVE",
- "channel_url": "https://www.fmnorth.co.jp/",
- "live_status": "was_live",
- "tags": ["ノースウェーブ", "角松敏生", "人気アーティストトーク"],
- "cast": ["角松\u3000敏生"],
- "series": "角松敏生 My BLUES LIFE",
- "description": "md5:027860a5731c04779b6720047c7b8b59",
- "upload_date": "20230618",
- "release_timestamp": 1687078800,
- "timestamp": 1687077000,
- "release_date": "20230618",
+ 'cast': ['角松\u3000敏生'],
+ 'tags': ['ノースウェーブ', '角松敏生', '人気アーティストトーク'],
+ 'channel_id': 'NORTHWAVE',
+ 'series': '角松敏生 My BLUES LIFE',
+ 'uploader_url': 'https://www.fmnorth.co.jp/',
+ 'upload_date': '20230820',
+ 'channel_url': 'https://www.fmnorth.co.jp/',
+ 'release_timestamp': 1692522000,
+ 'channel': 'FM NORTH WAVE',
+ 'uploader': 'FM NORTH WAVE',
+ 'thumbnail': 'https://radiko.jp/res/program/DEFAULT_IMAGE/NORTHWAVE/cwqcdppldk.jpg',
+ 'chapters': 'count:5',
+ 'duration': 1800,
+ 'release_date': '20230820',
+ 'live_status': 'was_live',
+ 'description': 'md5:027860a5731c04779b6720047c7b8b59',
+ 'timestamp': 1692520200,
},
}, {
# late-night show, see comment in _unfuck_day
- "url": "https://radiko.jp/#!/ts/TBS/20230617030000",
+ "url": "https://radiko.jp/#!/ts/TBS/20230824030000",
"info_dict": {
- "id": "TBS-20230617030000",
- "ext": "m4a",
+ "id": "TBS-20230824030000",
"title": "CITY CHILL CLUB",
- "cast": ["Mississippi Khaki Hair"],
- "thumbnail": "https://radiko.jp/res/program/DEFAULT_IMAGE/TBS/xxeimdxszs.jpg",
- "description": "md5:6b0401e5587c56abfabb695313db7057",
- "tags": ["CCC905", "音楽との出会いが楽しめる", "人気アーティストトーク", "音楽プロデューサー出演", "ドライブ中におすすめ", "寝る前におすすめ", "学生におすすめ"],
- "channel": "TBSラジオ",
- "uploader_url": "https://www.tbsradio.jp/",
- "channel_id": "TBS",
- "channel_url": "https://www.tbsradio.jp/",
- "duration": 7200,
- "series": "CITY CHILL CLUB",
- "live_status": "was_live",
- "timestamp": 1686938400,
- "upload_date": "20230616",
- "release_timestamp": 1686945600,
- "release_date": "20230616",
+ "ext": "m4a",
+ 'series': 'CITY CHILL CLUB',
+ 'timestamp': 1692813600,
+ 'description': 'md5:09327f9bfe9cfd3a4d4d20d86c15031f',
+ 'duration': 7200,
+ 'channel_url': 'https://www.tbsradio.jp/',
+ 'cast': ['tonun'],
+ 'upload_date': '20230823',
+ 'release_date': '20230823',
+ 'live_status': 'was_live',
+ 'chapters': 'count:28',
+ 'uploader': 'TBSラジオ',
+ 'release_timestamp': 1692820800,
+ 'thumbnail': 'https://radiko.jp/res/program/DEFAULT_IMAGE/TBS/ev6ru67jz8.jpg',
+ 'uploader_url': 'https://www.tbsradio.jp/',
+ 'channel_id': 'TBS',
+ 'tags': ['CCC905', '音楽との出会いが楽しめる', '人気アーティストトーク', '音楽プロデューサー出演', 'ドライブ中におすすめ', '寝る前におすすめ', '学生におすすめ'],
+ 'channel': 'TBSラジオ',
},
}, {
# early-morning show, same reason
- "url": "https://radiko.jp/#!/ts/TBS/20230619050000",
+ "url": "https://radiko.jp/#!/ts/TBS/20230824050000",
"info_dict": {
+ "id": "TBS-20230824050000",
"title": "生島ヒロシのおはよう定食・一直線",
- "id": "TBS-20230619050000",
"ext": "m4a",
- "cast": ["生島\u3000ヒロシ"],
- "channel": "TBSラジオ",
- "thumbnail": "https://radiko.jp/res/program/DEFAULT_IMAGE/TBS/ch3vcvtc5e.jpg",
- "description": "md5:6cb392cb140261acd8a2f7c63314c9e8",
- "series": "生島ヒロシのおはよう定食・一直線",
- "tags": ["生島ヒロシ", "健康", "檀れい", "朝のニュースを効率良く"],
- "channel_url": "https://www.tbsradio.jp/",
- "uploader_url": "https://www.tbsradio.jp/",
- "channel_id": "TBS",
- "duration": 5400,
- "live_status": "was_live",
- "release_timestamp": 1687123800,
- "release_date": "20230618",
- "upload_date": "20230618",
- "timestamp": 1687118400,
+ 'uploader_url': 'https://www.tbsradio.jp/',
+ 'channel_id': 'TBS',
+ 'channel_url': 'https://www.tbsradio.jp/',
+ 'tags': ['生島ヒロシ', '健康', '檀れい', '朝のニュースを効率良く'],
+ 'release_timestamp': 1692826200,
+ 'release_date': '20230823',
+ 'cast': ['生島\u3000ヒロシ'],
+ 'description': 'md5:1548ed6495813baebf579d6a4d210665',
+ 'upload_date': '20230823',
+ 'chapters': 'count:2',
+ 'timestamp': 1692820800,
+ 'uploader': 'TBSラジオ',
+ 'live_status': 'was_live',
+ 'thumbnail': 'https://radiko.jp/res/program/DEFAULT_IMAGE/TBS/ch3vcvtc5e.jpg',
+ 'channel': 'TBSラジオ',
+ 'series': '生島ヒロシのおはよう定食・一直線',
+ 'duration': 5400,
+
},
}]
@@ -892,26 +900,28 @@ 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",
+ "url": "http://radiko.jp/share/?sid=FMT&t=20230822240000",
"info_dict": {
"ext": "m4a",
- "id": "FMT-20230613000000",
+ "id": "FMT-20230823000000",
"title": "JET STREAM",
- 'channel_url': 'https://www.tfm.co.jp/',
- 'duration': 3300,
- 'timestamp': 1686582000,
- 'channel_id': 'FMT',
+ 'chapters': list,
+ 'uploader': 'TOKYO FM',
+ 'release_date': '20230822',
+ 'tags': ['福山雅治', '夜間飛行', '音楽との出会いが楽しめる', '朗読を楽しめる', '寝る前に聴きたい'],
+ 'release_timestamp': 1692719700.0,
+ 'upload_date': '20230822',
+ 'thumbnail': 'https://radiko.jp/res/program/DEFAULT_IMAGE/FMT/greinlrspi.jpg',
'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',
+ 'uploader_url': 'https://www.tfm.co.jp/',
+ 'description': 'md5:d41232c4f216103f4e825ccb2d883c3b',
+ 'channel_id': 'FMT',
+ 'timestamp': 1692716400.0,
+ 'duration': 3300,
+ 'channel': 'TOKYO FM',
+ 'channel_url': 'https://www.tfm.co.jp/',
}
}]