1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 09:12:40 +01:00

[itv] fix subtitle extraction

This commit is contained in:
Remita Amine 2017-01-28 17:28:18 +01:00
parent f592ff9868
commit 4edeac5bfa

View File

@ -177,7 +177,7 @@ def _add_sub_element(element, name):
continue
ext = determine_ext(caption_url.text, 'ttml')
subtitles.setdefault('en', []).append({
'url': caption_url,
'url': caption_url.text,
'ext': 'ttml' if ext == 'xml' else ext,
})