Browse Source

[imdb] Fix the resolution values (fixes #1847)

We were using the size of the player, it was the same for all the formats
Jaime Marquínez Ferrándiz 12 năm trước cách đây
mục cha
commit
acf37ca151
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      youtube_dl/extractor/imdb.py

+ 1 - 2
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 {