aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/misc
diff options
context:
space:
mode:
authorgarret1317 <garret@airmail.cc>2025-06-22 01:03:45 +0100
committergarret1317 <garret@airmail.cc>2025-06-22 01:03:45 +0100
commit12aced7d2d34d3e2ba1b2929aa421adcaabef434 (patch)
tree23eaa20aa352c8794a8c78928756f25598269a1f /misc
parentea171efac9b5d4a97cd59d316996c9559b264f79 (diff)
downloadyt-dlp-rajiko-12aced7d2d34d3e2ba1b2929aa421adcaabef434.tar.gz
yt-dlp-rajiko-12aced7d2d34d3e2ba1b2929aa421adcaabef434.tar.bz2
yt-dlp-rajiko-12aced7d2d34d3e2ba1b2929aa421adcaabef434.zip
Move RadikoTimeFreeIE tests to test script
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/test_extractors.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/misc/test_extractors.py b/misc/test_extractors.py
index 4ae5313..41dedb4 100755
--- a/misc/test_extractors.py
+++ b/misc/test_extractors.py
@@ -76,7 +76,32 @@ RadikoTimeFreeIE._TESTS.append({
})
+# late-night/v. early morning show, to test broadcast day handling
+# this should be monday 27:00 / tuesday 03:00
+airtime, release_time = get_latest_airtimes(now, TUE, 3, 0, datetime.timedelta(hours=2))
+RadikoTimeFreeIE._TESTS.append({
+ "url": f"https://radiko.jp/#!/ts/TBS/{airtime.timestring()}",
+ "info_dict": {
+ "ext": "m4a",
+ "id": f"TBS-{airtime.timestring()}",
+ **get_test_timefields(airtime, release_time),
+ 'title': 'CITY CHILL CLUB',
+ 'description': r"re:^目を閉じて…リラックスして[\S\s]+chill@tbs.co.jp$",
+ 'uploader': 'TBSラジオ',
+ 'uploader_id': 'TBS',
+ 'uploader_url': 'https://www.tbsradio.jp/',
+ 'channel': 'TBSラジオ',
+ 'channel_id': 'TBS',
+ 'channel_url': 'https://www.tbsradio.jp/',
+ 'thumbnail': 'https://program-static.cf.radiko.jp/nrf8fowbjo.jpg',
+ 'chapters': list,
+ 'tags': ['CCC905', '音楽との出会いが楽しめる', '人気アーティストトーク', '音楽プロデューサー出演', 'ドライブ中におすすめ', '寝る前におすすめ', '学生におすすめ'],
+ 'cast': list,
+ 'series': 'CITY CHILL CLUB',
+ 'live_status': 'was_live',
+ },
+})