[youku] Extract resolution
authorYen Chi Hsuan <yan12125@gmail.com>
Sun, 29 May 2016 05:54:05 +0000 (13:54 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sun, 29 May 2016 05:54:05 +0000 (13:54 +0800)
youtube_dl/extractor/youku.py

index 349ce09414b765060ac5f06121b87b529e287a12..dbccbe2287b1667aa343f3ea704faa08b6070b01 100644 (file)
@@ -275,6 +275,8 @@ class YoukuIE(InfoExtractor):
                     'format_id': self.get_format_name(fm),
                     'ext': self.parse_ext_l(fm),
                     'filesize': int(seg['size']),
+                    'width': stream.get('width'),
+                    'height': stream.get('height'),
                 })
 
         return {