mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 16:57:40 +00:00
[youtube] Use the existing w
and h
variables
This commit is contained in:
parent
313dfc45f5
commit
41f24c321d
1 changed files with 1 additions and 1 deletions
|
@ -1515,7 +1515,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
w = float(stretched_m.group('w'))
|
||||
h = float(stretched_m.group('h'))
|
||||
if w > 0 and h > 0:
|
||||
ratio = float(stretched_m.group('w')) / float(stretched_m.group('h'))
|
||||
ratio = w / h
|
||||
for f in formats:
|
||||
if f.get('vcodec') != 'none':
|
||||
f['stretched_ratio'] = ratio
|
||||
|
|
Loading…
Reference in a new issue