Compare commits

...

5 Commits

Author SHA1 Message Date
spookyahell
279ec5e833
Merge 4bce9e61ba into da252d9d32 2024-11-18 09:35:59 +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 = [] formats = []
subtitles = {} subtitles = {}
seen_manifest_urls = set()
# check if the metadata contains a direct URL to a file # check if the metadata contains a direct URL to a file
for kind, media in media_resource.items(): for kind, media in media_resource.items():
@ -76,6 +77,10 @@ class WDRIE(InfoExtractor):
if tag_name not in ('videoURL', 'audioURL'): if tag_name not in ('videoURL', 'audioURL'):
continue continue
if medium_url in seen_manifest_urls:
continue
seen_manifest_urls.add(medium_url)
ext = determine_ext(medium_url) ext = determine_ext(medium_url)
if ext == 'm3u8': if ext == 'm3u8':
formats.extend(self._extract_m3u8_formats( formats.extend(self._extract_m3u8_formats(