diff options
author | garret <garret@airmail.cc> | 2023-11-10 20:09:59 +0000 |
---|---|---|
committer | garret <garret@airmail.cc> | 2023-11-10 20:09:59 +0000 |
commit | df5fd6e2b829e451994e6cb3ac8f80d3b01e4434 (patch) | |
tree | 5e870fc1cf3c62a3dc90d832e14b58a0ed9b8793 /yt_dlp_plugins/extractor/radiko.py | |
parent | 69c477ea27a466b6b689bdad65c349ffb65c35a2 (diff) | |
download | yt-dlp-rajiko-df5fd6e2b829e451994e6cb3ac8f80d3b01e4434.tar.gz yt-dlp-rajiko-df5fd6e2b829e451994e6cb3ac8f80d3b01e4434.tar.bz2 yt-dlp-rajiko-df5fd6e2b829e451994e6cb3ac8f80d3b01e4434.zip |
write to filehandle-as-live-streams
Diffstat (limited to 'yt_dlp_plugins/extractor/radiko.py')
-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 |