mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 01:25:06 +00:00
[itv] fix subtitle extraction
This commit is contained in:
parent
f592ff9868
commit
4edeac5bfa
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ def _add_sub_element(element, name):
|
||||||
continue
|
continue
|
||||||
ext = determine_ext(caption_url.text, 'ttml')
|
ext = determine_ext(caption_url.text, 'ttml')
|
||||||
subtitles.setdefault('en', []).append({
|
subtitles.setdefault('en', []).append({
|
||||||
'url': caption_url,
|
'url': caption_url.text,
|
||||||
'ext': 'ttml' if ext == 'xml' else ext,
|
'ext': 'ttml' if ext == 'xml' else ext,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue