projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0bf2198
)
[ustream] Move filesize
author
Sergey M․
<dstftw@gmail.com>
Mon, 5 Oct 2015 16:48:47 +0000
(22:48 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 5 Oct 2015 16:48:47 +0000
(22:48 +0600)
youtube_dl/extractor/ustream.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ustream.py
b/youtube_dl/extractor/ustream.py
index 7243d0eca764854630e42e2b81f48b2d8c55db70..888f39f7a4e481423e738a63f0f3fa297f25059b 100644
(file)
--- a/
youtube_dl/extractor/ustream.py
+++ b/
youtube_dl/extractor/ustream.py
@@
-65,18
+65,20
@@
class UstreamIE(InfoExtractor):
video = params['video']
video = params['video']
+ title = video['title']
+ filesize = float_or_none(video.get('file_size'))
+
formats = [{
'id': format_id,
'url': video_url,
'ext': format_id,
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)
} 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'))
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')
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,
'thumbnails': thumbnails,
'timestamp': timestamp,
'duration': duration,
- 'filesize': filesize,
'view_count': view_count,
'uploader': uploader,
'uploader_id': uploader_id,
'view_count': view_count,
'uploader': uploader,
'uploader_id': uploader_id,