Compare commits

...

5 Commits

Author SHA1 Message Date
spookyahell
a9a98d1a9c
Merge 4bce9e61ba into 52c0ffe40a 2024-11-17 09:41:41 +05:30
pukkandan
4bce9e61ba
Use set 2023-06-21 08:20:04 +05:30
spookyahell
f09bf69251
Fix incorrectly updated characters
(Sorry for that, that was unintentional, some encoding error.)
2023-04-03 01:19:03 +02:00
spookyahell
f1be31fa80
Fixes for flake8 2023-03-16 01:18:22 +01:00
spookyahell
1a6fdcef9c
Fix not adding two of the same manifest values
(Sometimes I hate it when technology is implemented like this in the first place: Link to a "alternative", but it's just the original)
2023-03-16 00:59:46 +01:00

View File

@ -56,6 +56,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():
@ -76,6 +77,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(