From 7e51ac7712d122beff12d2ef8483b1951f325747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Sola?= Date: Mon, 4 Oct 2021 13:17:11 +0200 Subject: [PATCH] [atresplayer] call _merge_subtitles instead of update --- youtube_dl/extractor/atresplayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/atresplayer.py b/youtube_dl/extractor/atresplayer.py index a9ac4a669..75370c5ba 100644 --- a/youtube_dl/extractor/atresplayer.py +++ b/youtube_dl/extractor/atresplayer.py @@ -137,7 +137,7 @@ class AtresPlayerIE(InfoExtractor): if mpd: mpd_doc, mpd_handle = mpd 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( mpd_doc, mpd_id='dash', mpd_base_url=mpd_base_url, mpd_url=src)) self._sort_formats(formats)