mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 03:33:02 +00:00
[imdb] Fix the resolution values (fixes #1847)
We were using the size of the player, it was the same for all the formats
This commit is contained in:
parent
17769d5a6c
commit
acf37ca151
1 changed files with 1 additions and 2 deletions
|
@ -46,8 +46,7 @@ def _real_extract(self, url):
|
||||||
formats.append({
|
formats.append({
|
||||||
'format_id': f_id,
|
'format_id': f_id,
|
||||||
'url': format_info['url'],
|
'url': format_info['url'],
|
||||||
'height': format_info['height'],
|
'height': int(info['titleObject']['encoding']['selected'][:-1]),
|
||||||
'width': format_info['width'],
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue