[ie] Extract from `media` elements in SMIL manifests (#8504)

Authored by: seproDev
pull/8274/head^2
sepro 1 year ago committed by GitHub
parent f223b1b078
commit ddb2d7588b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2341,7 +2341,9 @@ class InfoExtractor:
imgs_count = 0 imgs_count = 0
srcs = set() 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: for medium in media:
src = medium.get('src') src = medium.get('src')
if not src or src in srcs: if not src or src in srcs:

Loading…
Cancel
Save