diff options
author | Lukáš Lalinský <lukas@oxygene.sk> | 2015-11-28 08:16:46 +0100 |
---|---|---|
committer | Lukáš Lalinský <lukas@oxygene.sk> | 2015-11-28 08:16:46 +0100 |
commit | 41f24c321d04108a32f457d5d5445f2cfce705a8 (patch) | |
tree | d501eedf634f44c41fe4e3fba3975a7db18d5727 /youtube_dl/extractor | |
parent | 313dfc45f500db3acc348d58f431197ce7c153a3 (diff) |
[youtube] Use the existing `w` and `h` variables
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 726b5ba0a..9da8d4bc5 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 / h for f in formats: if f.get('vcodec') != 'none': f['stretched_ratio'] = ratio |