Closed rubyevadestaxes closed 9 months ago
Looks like a bug that's been present since the extractor was added (1931a55ee8412ee385357f33128996cc3d07560e)
diff --git a/yt_dlp/extractor/radiko.py b/yt_dlp/extractor/radiko.py
index 8c8fb1a8f..c363d9ba5 100644
--- a/yt_dlp/extractor/radiko.py
+++ b/yt_dlp/extractor/radiko.py
@@ -154,7 +154,7 @@ def _extract_formats(self, video_id, station, is_onair, ft, cursor, auth_token,
sf['preference'] = -100
sf['format_note'] = 'not preferred'
if not is_onair and timefree_int == 1 and time_to_skip:
- sf['downloader_options'] = {'ffmpeg_args': ['-ss', time_to_skip]}
+ sf['downloader_options'] = {'ffmpeg_args': ['-ss', str(time_to_skip)]}
formats.extend(subformats)
return formats
CC: @garret1317
tested, can confirm the fix works but im curious why this behaviour is something you'd want surely you should download the whole programme then seek to the bit you want in your player? why start right in the middle of it?
the ffmpeg arg is needed for radiko.jp
(not-live) format
please disregard this message
either way it doesnt look like it's the ffmpeg arg that's doing the seeking forward, it's the
seek
query that gets added in RadikoIE._real_extract
so an alternative fix is to just delete those lines
(download still starts at the same time with the ffmpeg bit commented out,)
also, the seeking, with or without the ffmpeg arg, only works for certain formats: works on wowza, doesnt work on radiko.jp
smartstream formats dont work with yt-dlp, but looking at the playlist with -g
and curl, it works for them too
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Region
Japan
Provide a description that is worded well enough to be understood
yt-dlp breaks when trying to download from Radiko with the error: 'int' object has no attribute 'decode' The page is only accessible from Japan.
Command used: yt-dlp 'https://radiko.jp/#!/ts/LFR/20231010022853' -v --update
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output