From df5fd6e2b829e451994e6cb3ac8f80d3b01e4434 Mon Sep 17 00:00:00 2001 From: garret Date: Fri, 10 Nov 2023 20:09:59 +0000 Subject: write to file --- yt_dlp_plugins/extractor/radiko.py | 14 ++++++++------ 1 file 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 -- cgit v1.2.3-70-g09d2