[dl:ytdl] implement explicit HLS/DASH handling

add '_ytdl_manifest' to specify a manifest type to process
This commit is contained in:
Mike Fährmann
2024-10-15 21:54:05 +02:00
parent 67547a659f
commit 1824267447
5 changed files with 51 additions and 3 deletions

View File

@@ -171,6 +171,7 @@ class BehanceGalleryExtractor(BehanceExtractor):
url = text.extr(page, '<source src="', '"')
if text.ext_from_url(url) == "m3u8":
url = "ytdl:" + url
module["_ytdl_manifest"] = "hls"
module["extension"] = "mp4"
append((url, module))
continue