From ddb2d7588bea48bae965dbfabe6df6550c9d3d43 Mon Sep 17 00:00:00 2001 From: sepro <4618135+seproDev@users.noreply.github.com> Date: Sat, 18 Nov 2023 22:51:18 +0100 Subject: [PATCH] [ie] Extract from `media` elements in SMIL manifests (#8504) Authored by: seproDev --- yt_dlp/extractor/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index b3a45b3fb..507ef34cf 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -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: