mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-08 19:11:50 +00:00
[ie/youtube] Fix subtitles extraction (#13659)
Fixes regression introduced in 2ba5391cd68ed4f2415c827d2cecbcbc75ace10b Closes #13654 Authored by: bashonly
This commit is contained in:
parent
422cc8cb2f
commit
0e68332bcb
@ -3978,7 +3978,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
def process_language(container, base_url, lang_code, sub_name, client_name, query):
|
||||
lang_subs = container.setdefault(lang_code, [])
|
||||
for fmt in self._SUBTITLE_FORMATS:
|
||||
query = {**query, 'fmt': fmt}
|
||||
# xosf=1 results in undesirable text position data for vtt, json3 & srv* subtitles
|
||||
# See: https://github.com/yt-dlp/yt-dlp/issues/13654
|
||||
query = {**query, 'fmt': fmt, 'xosf': []}
|
||||
lang_subs.append({
|
||||
'ext': fmt,
|
||||
'url': urljoin('https://www.youtube.com', update_url_query(base_url, query)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user