]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[imdb] Fix the resolution values (fixes #1847)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 29 Nov 2013 06:56:14 +0000 (07:56 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 29 Nov 2013 06:56:14 +0000 (07:56 +0100)
We were using the size of the player, it was the same for all the formats

youtube_dl/extractor/imdb.py

index 520edc7d0c50a2bc227c2f143a82744f4badc628..d8e9712a7acd39db97c8a55b2551137ca0e56a41 100644 (file)
@@ -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 {