aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/yt_dlp_plugins/extractor
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2023-11-10 20:09:59 +0000
committergarret <garret@airmail.cc>2023-11-10 20:09:59 +0000
commitdf5fd6e2b829e451994e6cb3ac8f80d3b01e4434 (patch)
tree5e870fc1cf3c62a3dc90d832e14b58a0ed9b8793 /yt_dlp_plugins/extractor
parent69c477ea27a466b6b689bdad65c349ffb65c35a2 (diff)
downloadyt-dlp-rajiko-handle-as-live-streams.tar.gz
yt-dlp-rajiko-handle-as-live-streams.tar.bz2
yt-dlp-rajiko-handle-as-live-streams.zip
Diffstat (limited to 'yt_dlp_plugins/extractor')
-rw-r--r--yt_dlp_plugins/extractor/radiko.py14
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