Ver Fonte

[vesti] Fix width and height

Sergey M․ há 11 anos atrás
pai
commit
e477dcf649
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      youtube_dl/extractor/vesti.py

+ 2 - 2
youtube_dl/extractor/vesti.py

@@ -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'))