mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
Merge 4bce9e61ba
into 05c8023a27
This commit is contained in:
commit
9a7a7b443e
1 changed files with 5 additions and 0 deletions
|
@ -56,6 +56,7 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
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 @@ def _real_extract(self, url):
|
||||||
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(
|
||||||
|
|
Loading…
Reference in a new issue