projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
702e522
)
[dreisat] Fix thumbnails' width and height
author
Sergey M․
<dstftw@gmail.com>
Sun, 8 Jun 2014 15:41:24 +0000
(22:41 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 8 Jun 2014 15:41:24 +0000
(22:41 +0700)
youtube_dl/extractor/dreisat.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/dreisat.py
b/youtube_dl/extractor/dreisat.py
index 0b11d1f10e18e4358b35f76d0a0e0816b00eaa4c..011264eca7ad13263ebaa2abf64de2559f7a7d7a 100644
(file)
--- 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]