summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <[email protected]>2013-11-29 07:56:14 +0100
committerJaime Marquínez Ferrándiz <[email protected]>2013-11-29 07:56:14 +0100
commitacf37ca151d67ee28034775662318d9a0a1eb6f4 (patch)
tree46251daa79a3461bc8594d9c37a9b58ad1c6f7c2
parent17769d5a6c24eb8f5d609aa99f84debc3fe4adec (diff)
downloadyoutube-dl-acf37ca151d67ee28034775662318d9a0a1eb6f4.tar.gz
youtube-dl-acf37ca151d67ee28034775662318d9a0a1eb6f4.zip
[imdb] Fix the resolution values (fixes #1847)
We were using the size of the player, it was the same for all the formats
-rw-r--r--youtube_dl/extractor/imdb.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/imdb.py b/youtube_dl/extractor/imdb.py
index 520edc7d0..d8e9712a7 100644
--- a/youtube_dl/extractor/imdb.py
+++ b/youtube_dl/extractor/imdb.py
@@ -46,8 +46,7 @@ class ImdbIE(InfoExtractor):
formats.append({
'format_id': f_id,
'url': format_info['url'],
- 'height': format_info['height'],
- 'width': format_info['width'],
+ 'height': int(info['titleObject']['encoding']['selected'][:-1]),
})
return {