|
|
@ -77,12 +77,20 @@ class RumbleEmbedIE(InfoExtractor):
|
|
|
|
formats.append(f)
|
|
|
|
formats.append(f)
|
|
|
|
self._sort_formats(formats)
|
|
|
|
self._sort_formats(formats)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
subtitles = {
|
|
|
|
|
|
|
|
lang: [{
|
|
|
|
|
|
|
|
'url': sub_info['path'],
|
|
|
|
|
|
|
|
'name': sub_info.get('language') or '',
|
|
|
|
|
|
|
|
}] for lang, sub_info in (video.get('cc') or {}).items() if sub_info.get('path')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
author = video.get('author') or {}
|
|
|
|
author = video.get('author') or {}
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
'id': video_id,
|
|
|
|
'id': video_id,
|
|
|
|
'title': title,
|
|
|
|
'title': title,
|
|
|
|
'formats': formats,
|
|
|
|
'formats': formats,
|
|
|
|
|
|
|
|
'subtitles': subtitles,
|
|
|
|
'thumbnail': video.get('i'),
|
|
|
|
'thumbnail': video.get('i'),
|
|
|
|
'timestamp': parse_iso8601(video.get('pubDate')),
|
|
|
|
'timestamp': parse_iso8601(video.get('pubDate')),
|
|
|
|
'channel': author.get('name'),
|
|
|
|
'channel': author.get('name'),
|
|
|
|