[itv] fix subtitle extraction

This commit is contained in:
Remita Amine 2017-01-28 17:28:18 +01:00 committed by motophil
parent 0f552b3a35
commit ed83752f7b

View File

@ -177,7 +177,7 @@ class ITVIE(InfoExtractor):
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,
}) })