A feature-rich command-line audio/video downloader
[youtube] Use the existing `w` and `h` variables
Lukáš Lalinský41f24c321d04
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.pyindex 726b5ba0aa..9da8d4bc53 100644--- a/youtube_dl/extractor/youtube.py+++ b/youtube_dl/extractor/youtube.py@@ -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 / hfor f in formats:if f.get('vcodec') != 'none':f['stretched_ratio'] = ratio