From: Jaime Marquínez Ferrándiz Date: Fri, 29 Nov 2013 06:56:14 +0000 (+0100) Subject: [imdb] Fix the resolution values (fixes #1847) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=acf37ca151d67ee28034775662318d9a0a1eb6f4;p=youtube-dl [imdb] Fix the resolution values (fixes #1847) We were using the size of the player, it was the same for all the formats --- 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 {