[dreisat] Fix thumbnails' width and height
authorSergey M․ <dstftw@gmail.com>
Sun, 8 Jun 2014 15:41:24 +0000 (22:41 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 8 Jun 2014 15:41:24 +0000 (22:41 +0700)
youtube_dl/extractor/dreisat.py

index 0b11d1f10e18e4358b35f76d0a0e0816b00eaa4c..011264eca7ad13263ebaa2abf64de2559f7a7d7a 100644 (file)
@@ -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]