mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 06:27:21 +00:00
fix usage of 'self._merge_subtitles'
This commit is contained in:
parent
4b00360b4e
commit
c0aa2e8160
|
@ -324,7 +324,7 @@ def _real_extract(self, url):
|
||||||
attrs.get('data-vjs-clip-hls-url')], (..., {url_or_none})):
|
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')
|
fmt, subs = self._extract_m3u8_formats_and_subtitles(m3u8_url, video_id, ext='mp4', m3u8_id='hls')
|
||||||
formats.extend(fmt)
|
formats.extend(fmt)
|
||||||
self._merge_subtitles(subs, subtitles)
|
self._merge_subtitles(subs, target=subtitles)
|
||||||
if fmt:
|
if fmt:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
@ -333,7 +333,7 @@ def _real_extract(self, url):
|
||||||
attrs.get('data-vjs-clip-dash-url')], (..., {url_or_none})):
|
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')
|
fmt, subs = self._extract_mpd_formats_and_subtitles(mpd_url, video_id, mpd_id='dash')
|
||||||
formats.extend(fmt)
|
formats.extend(fmt)
|
||||||
self._merge_subtitles(subs, subtitles)
|
self._merge_subtitles(subs, target=subtitles)
|
||||||
if fmt:
|
if fmt:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue