From c0aa2e81603aa64aff5a6a7418fe7cf980ec5ac8 Mon Sep 17 00:00:00 2001 From: Mozi <29089388+pzhlkj6612@users.noreply.github.com> Date: Mon, 28 Oct 2024 00:37:41 +0000 Subject: [PATCH] fix usage of 'self._merge_subtitles' --- yt_dlp/extractor/vidio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/vidio.py b/yt_dlp/extractor/vidio.py index f5b7a0094e..993f302d5d 100644 --- a/yt_dlp/extractor/vidio.py +++ b/yt_dlp/extractor/vidio.py @@ -324,7 +324,7 @@ def _real_extract(self, url): attrs.get('data-vjs-clip-hls-url')], (..., {url_or_none})): fmt, subs = self._extract_m3u8_formats_and_subtitles(m3u8_url, video_id, ext='mp4', m3u8_id='hls') formats.extend(fmt) - self._merge_subtitles(subs, subtitles) + self._merge_subtitles(subs, target=subtitles) if fmt: break @@ -333,7 +333,7 @@ def _real_extract(self, url): attrs.get('data-vjs-clip-dash-url')], (..., {url_or_none})): fmt, subs = self._extract_mpd_formats_and_subtitles(mpd_url, video_id, mpd_id='dash') formats.extend(fmt) - self._merge_subtitles(subs, subtitles) + self._merge_subtitles(subs, target=subtitles) if fmt: break