[vesti] Fix width and height
authorSergey M․ <dstftw@gmail.com>
Tue, 4 Mar 2014 14:40:35 +0000 (21:40 +0700)
committerSergey M․ <dstftw@gmail.com>
Tue, 4 Mar 2014 14:40:35 +0000 (21:40 +0700)
youtube_dl/extractor/vesti.py

index f51d4dcfa6c0cbda5fb8c53d0421ac099cea8295..4172821290d8ca14ca04f30400e48b37df6a243b 100644 (file)
@@ -113,8 +113,8 @@ class VestiIE(InfoExtractor):
         priority_transport = playlist['priority_transport']
 
         thumbnail = media['picture']
-        width = media['width']
-        height = media['height']
+        width = int_or_none(media['width'])
+        height = int_or_none(media['height'])
         description = media['anons']
         title = media['title']
         duration = int_or_none(media.get('duration'))