[generic] Extract subtitles from direct DASH manifest links

This commit is contained in:
Felix S 2021-04-18 08:41:28 +02:00
parent c26326c1be
commit 7de27caf16

View file

@ -2526,7 +2526,7 @@ def _real_extract(self, url):
xspf_base_url=full_response.geturl()),
video_id)
elif re.match(r'(?i)^(?:{[^}]+})?MPD$', doc.tag):
info_dict['formats'] = self._parse_mpd_formats(
info_dict['formats'], info_dict['subtitles'] = self._parse_mpd_formats_and_subtitles(
doc,
mpd_base_url=full_response.geturl().rpartition('/')[0],
mpd_url=url)