|
|
@ -198,14 +198,15 @@ class VRVIE(VRVBaseIE):
|
|
|
|
self._sort_formats(formats)
|
|
|
|
self._sort_formats(formats)
|
|
|
|
|
|
|
|
|
|
|
|
subtitles = {}
|
|
|
|
subtitles = {}
|
|
|
|
for subtitle in streams_json.get('subtitles', {}).values():
|
|
|
|
for k in ('captions', 'subtitles'):
|
|
|
|
subtitle_url = subtitle.get('url')
|
|
|
|
for subtitle in streams_json.get(k, {}).values():
|
|
|
|
if not subtitle_url:
|
|
|
|
subtitle_url = subtitle.get('url')
|
|
|
|
continue
|
|
|
|
if not subtitle_url:
|
|
|
|
subtitles.setdefault(subtitle.get('locale', 'en-US'), []).append({
|
|
|
|
continue
|
|
|
|
'url': subtitle_url,
|
|
|
|
subtitles.setdefault(subtitle.get('locale', 'en-US'), []).append({
|
|
|
|
'ext': subtitle.get('format', 'ass'),
|
|
|
|
'url': subtitle_url,
|
|
|
|
})
|
|
|
|
'ext': subtitle.get('format', 'ass'),
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
thumbnails = []
|
|
|
|
thumbnails = []
|
|
|
|
for thumbnail in video_data.get('images', {}).get('thumbnails', []):
|
|
|
|
for thumbnail in video_data.get('images', {}).get('thumbnails', []):
|
|
|
|