[reddit] improve archive IDs of fallback files (#7760)

prevent 'DASH...' and 'HLS...' entries
This commit is contained in:
Mike Fährmann
2025-07-11 22:58:18 +02:00
parent 755434600e
commit 98895b732f

View File

@@ -463,8 +463,11 @@ class DownloadJob(Job):
else:
pextr.log.info("Downloading fallback URL")
text.nameext_from_url(url, kwdict)
if kwdict["filename"].startswith((
"HLS", "DASH")):
kwdict["filename"] = url.rsplit("/", 2)[-2]
if url.startswith("ytdl:"):
kwdict["extension"] = ""
kwdict["extension"] = "mp4"
self.handle_url(url, kwdict)
break
except exception.RestartExtraction: