diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-10-05 22:48:47 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-10-05 22:48:47 +0600 |
commit | 41db73330835d6e8fe29ce18f869247a739467ce (patch) | |
tree | 2e083e1ad748256e9b87e82bfde3598f0e517c7b | |
parent | 0bf219889e39d4d7e75fdb59d7452b8e09f4ddab (diff) |
[ustream] Move filesize
-rw-r--r-- | youtube_dl/extractor/ustream.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/youtube_dl/extractor/ustream.py b/youtube_dl/extractor/ustream.py index 7243d0eca..888f39f7a 100644 --- a/youtube_dl/extractor/ustream.py +++ b/youtube_dl/extractor/ustream.py @@ -65,18 +65,20 @@ class UstreamIE(InfoExtractor): video = params['video'] + title = video['title'] + filesize = float_or_none(video.get('file_size')) + formats = [{ 'id': format_id, 'url': video_url, 'ext': format_id, + 'filesize': filesize, } for format_id, video_url in video['media_urls'].items()] self._sort_formats(formats) - title = video['title'] description = video.get('description') timestamp = int_or_none(video.get('created_at')) duration = float_or_none(video.get('length')) - filesize = float_or_none(video.get('file_size')) view_count = int_or_none(video.get('views')) uploader = video.get('owner', {}).get('username') @@ -94,7 +96,6 @@ class UstreamIE(InfoExtractor): 'thumbnails': thumbnails, 'timestamp': timestamp, 'duration': duration, - 'filesize': filesize, 'view_count': view_count, 'uploader': uploader, 'uploader_id': uploader_id, |