Explorar el Código

[dreisat] Fix thumbnails' width and height

Sergey M․ hace 11 años
padre
commit
15e423407f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      youtube_dl/extractor/dreisat.py

+ 2 - 2
youtube_dl/extractor/dreisat.py

@@ -32,8 +32,8 @@ class DreiSatIE(InfoExtractor):
 
         thumbnail_els = details_doc.findall('.//teaserimage')
         thumbnails = [{
-            'width': te.attrib['key'].partition('x')[0],
-            'height': te.attrib['key'].partition('x')[2],
+            'width': int(te.attrib['key'].partition('x')[0]),
+            'height': int(te.attrib['key'].partition('x')[2]),
             'url': te.text,
         } for te in thumbnail_els]