diff options
Diffstat (limited to 'yt_dlp_plugins/extractor')
-rw-r--r-- | yt_dlp_plugins/extractor/radiko.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index 920da6e..9b94a7b 100644 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -566,6 +566,7 @@ class _RadikoBaseIE(InfoExtractor): "ft": chunk_start.timestring(), "end_at": chunk_end.timestring(), "to": chunk_end.timestring(), + "l": chunk_length, }) entries.append(chunk_url) return entries @@ -599,12 +600,13 @@ class _RadikoBaseIE(InfoExtractor): start_at=start_at, end_at=end_at) entries = [] - for pl in playlist_urls: - entries.append(self._extract_m3u8_formats( - pl, station, m3u8_id=domain, fatal=False, headers=auth_data, - note=f"Downloading m3u8 information from {domain}", preference=preference)) - print(entries) - formats.append(entries) +# for pl in playlist_urls: +# entries.append(self._extract_m3u8_formats( +# pl, station, m3u8_id=domain, fatal=False, headers=auth_data, +# note=f"Downloading m3u8 information from {domain}", preference=preference)) + with open(domain, "w") as f: + f.write("\n".join(playlist_urls)) +# formats.append(entries) return formats |