This commit is contained in:
spookyahell 2024-04-28 10:17:38 +05:30 committed by GitHub
commit 1e8de55958
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,7 @@ class WDRIE(InfoExtractor):
formats = []
subtitles = {}
seen_manifest_urls = set()
# check if the metadata contains a direct URL to a file
for kind, media in media_resource.items():
@ -79,6 +80,10 @@ class WDRIE(InfoExtractor):
if tag_name not in ('videoURL', 'audioURL'):
continue
if medium_url in seen_manifest_urls:
continue
seen_manifest_urls.add(medium_url)
ext = determine_ext(medium_url)
if ext == 'm3u8':
formats.extend(self._extract_m3u8_formats(