aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorLukáš Lalinský <lukas@oxygene.sk>2015-11-28 08:16:46 +0100
committerLukáš Lalinský <lukas@oxygene.sk>2015-11-28 08:16:46 +0100
commit41f24c321d04108a32f457d5d5445f2cfce705a8 (patch)
treed501eedf634f44c41fe4e3fba3975a7db18d5727 /youtube_dl
parent313dfc45f500db3acc348d58f431197ce7c153a3 (diff)
[youtube] Use the existing `w` and `h` variables
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/youtube.py2
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