aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-06-08 22:41:24 +0700
committerSergey M․ <dstftw@gmail.com>2014-06-08 22:41:24 +0700
commit15e423407f4bd6a3035335ec8fb63dc8ef88db52 (patch)
tree6ae238b08c918ba47429b04c1d88507f4e8f8fc5
parent702e5220444a970cd4d05ec95deb478391e365cc (diff)
downloadyoutube-dl-15e423407f4bd6a3035335ec8fb63dc8ef88db52.tar.xz
[dreisat] Fix thumbnails' width and height
-rw-r--r--youtube_dl/extractor/dreisat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/dreisat.py b/youtube_dl/extractor/dreisat.py
index 0b11d1f10..011264eca 100644
--- a/youtube_dl/extractor/dreisat.py
+++ b/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]