mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[ustream] Move filesize
This commit is contained in:
parent
0bf219889e
commit
41db733308
1 changed files with 4 additions and 3 deletions
|
@ -65,18 +65,20 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
video = params['video']
|
video = params['video']
|
||||||
|
|
||||||
|
title = video['title']
|
||||||
|
filesize = float_or_none(video.get('file_size'))
|
||||||
|
|
||||||
formats = [{
|
formats = [{
|
||||||
'id': format_id,
|
'id': format_id,
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
'ext': format_id,
|
'ext': format_id,
|
||||||
|
'filesize': filesize,
|
||||||
} for format_id, video_url in video['media_urls'].items()]
|
} for format_id, video_url in video['media_urls'].items()]
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
title = video['title']
|
|
||||||
description = video.get('description')
|
description = video.get('description')
|
||||||
timestamp = int_or_none(video.get('created_at'))
|
timestamp = int_or_none(video.get('created_at'))
|
||||||
duration = float_or_none(video.get('length'))
|
duration = float_or_none(video.get('length'))
|
||||||
filesize = float_or_none(video.get('file_size'))
|
|
||||||
view_count = int_or_none(video.get('views'))
|
view_count = int_or_none(video.get('views'))
|
||||||
|
|
||||||
uploader = video.get('owner', {}).get('username')
|
uploader = video.get('owner', {}).get('username')
|
||||||
|
@ -94,7 +96,6 @@ def _real_extract(self, url):
|
||||||
'thumbnails': thumbnails,
|
'thumbnails': thumbnails,
|
||||||
'timestamp': timestamp,
|
'timestamp': timestamp,
|
||||||
'duration': duration,
|
'duration': duration,
|
||||||
'filesize': filesize,
|
|
||||||
'view_count': view_count,
|
'view_count': view_count,
|
||||||
'uploader': uploader,
|
'uploader': uploader,
|
||||||
'uploader_id': uploader_id,
|
'uploader_id': uploader_id,
|
||||||
|
|
Loading…
Reference in a new issue