1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-16 14:45:45 +00:00

[atresplayer] call _merge_subtitles instead of update

This commit is contained in:
Ramón Sola 2021-10-04 13:17:11 +02:00
parent 25aa60a913
commit 7e51ac7712

View file

@ -137,7 +137,7 @@ class AtresPlayerIE(InfoExtractor):
if mpd: if mpd:
mpd_doc, mpd_handle = mpd mpd_doc, mpd_handle = mpd
mpd_base_url = base_url(mpd_handle.geturl()) mpd_base_url = base_url(mpd_handle.geturl())
subtitles.update(self._get_mpd_subtitles(mpd_doc, mpd_base_url)) subtitles = self._merge_subtitles(subtitles, self._get_mpd_subtitles(mpd_doc, mpd_base_url))
formats.extend(self._parse_mpd_formats( formats.extend(self._parse_mpd_formats(
mpd_doc, mpd_id='dash', mpd_base_url=mpd_base_url, mpd_url=src)) mpd_doc, mpd_id='dash', mpd_base_url=mpd_base_url, mpd_url=src))
self._sort_formats(formats) self._sort_formats(formats)