mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-08 01:43:47 +00:00
always add lazy fragments
This commit is contained in:
parent
b9f04eb20c
commit
ff90e3852f
@ -1859,7 +1859,10 @@ class InfoExtractor:
|
||||
unique_formats = []
|
||||
for f in formats:
|
||||
fragments = f.get('fragments')
|
||||
if fragments and not callable(fragments):
|
||||
if callable(fragments):
|
||||
unique_formats.append(f)
|
||||
|
||||
elif fragments:
|
||||
if base_url := f.get('fragment_base_url'):
|
||||
fragments = map(urljoin(base_url), fragments)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user