mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-26 02:55:17 +00:00
parent
69b2f838d3
commit
78bc1868ff
1 changed files with 26 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
|||
ExtractorError,
|
||||
UnsupportedError,
|
||||
clean_html,
|
||||
determine_ext,
|
||||
get_element_by_class,
|
||||
int_or_none,
|
||||
parse_count,
|
||||
|
@ -175,12 +176,16 @@ def _real_extract(self, url):
|
|||
video_info['url'], video_id,
|
||||
ext='mp4', m3u8_id='hls', fatal=False, live=live_status == 'is_live'))
|
||||
continue
|
||||
timeline = ext == 'timeline'
|
||||
if timeline:
|
||||
ext = determine_ext(video_info['url'])
|
||||
formats.append({
|
||||
'ext': ext,
|
||||
'acodec': 'none' if timeline else None,
|
||||
'url': video_info['url'],
|
||||
'format_id': '%s-%sp' % (ext, height),
|
||||
'height': int_or_none(height),
|
||||
'fps': video.get('fps'),
|
||||
'format_note': 'Timeline' if timeline else None,
|
||||
'fps': None if timeline else video.get('fps'),
|
||||
**traverse_obj(meta, {
|
||||
'tbr': 'bitrate',
|
||||
'filesize': 'size',
|
||||
|
@ -247,6 +252,25 @@ class RumbleIE(InfoExtractor):
|
|||
}, {
|
||||
'url': 'http://www.rumble.com/vDMUM1?key=value',
|
||||
'only_matching': True,
|
||||
}, {
|
||||
'note': 'timeline format',
|
||||
'url': 'https://rumble.com/v2ea9qb-the-u.s.-cannot-hide-this-in-ukraine-anymore-redacted-with-natali-and-clayt.html',
|
||||
'md5': '40d61fec6c0945bca3d0e1dc1aa53d79',
|
||||
'params': {'format': 'wv'},
|
||||
'info_dict': {
|
||||
'id': 'v2bou5f',
|
||||
'ext': 'mp4',
|
||||
'uploader': 'Redacted News',
|
||||
'upload_date': '20230322',
|
||||
'timestamp': 1679445010,
|
||||
'title': 'The U.S. CANNOT hide this in Ukraine anymore | Redacted with Natali and Clayton Morris',
|
||||
'duration': 892,
|
||||
'channel': 'Redacted News',
|
||||
'description': 'md5:aaad0c5c3426d7a361c29bdaaced7c42',
|
||||
'channel_url': 'https://rumble.com/c/Redacted',
|
||||
'live_status': 'not_live',
|
||||
'thumbnail': 'https://sp.rmbl.ws/s8/1/d/x/2/O/dx2Oi.qR4e-small-The-U.S.-CANNOT-hide-this-i.jpg',
|
||||
},
|
||||
}]
|
||||
|
||||
_WEBPAGE_TESTS = [{
|
||||
|
|
Loading…
Reference in a new issue