mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 02:42:30 +00:00
[ie] Extract from media
elements in SMIL manifests (#8504)
Authored by: seproDev
This commit is contained in:
parent
f223b1b078
commit
ddb2d7588b
@ -2341,7 +2341,9 @@ def _parse_smil_formats_and_subtitles(
|
||||
imgs_count = 0
|
||||
|
||||
srcs = set()
|
||||
media = smil.findall(self._xpath_ns('.//video', namespace)) + smil.findall(self._xpath_ns('.//audio', namespace))
|
||||
media = itertools.chain.from_iterable(
|
||||
smil.findall(self._xpath_ns(arg, namespace))
|
||||
for arg in ['.//video', './/audio', './/media'])
|
||||
for medium in media:
|
||||
src = medium.get('src')
|
||||
if not src or src in srcs:
|
||||
|
Loading…
Reference in New Issue
Block a user