aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-01-19 05:47:20 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-01-19 05:47:20 +0100
commitdd27fd1739ad7fed878ecab17e51001c336d1190 (patch)
tree75d76ce6cdb5ccbd41b76079db84d3930a0bf357 /youtube_dl/utils.py
parentdfa50793d8541ff2c5603f7c3b727c0f6e551d8d (diff)
[youtube] Download DASH manifest
If given, download and parse the DASH manifest file, in order to get ultra-HQ formats. Fixes #2166
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 73fe1ad0a..879394d88 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -1128,8 +1128,8 @@ class HEADRequest(compat_urllib_request.Request):
return "HEAD"
-def int_or_none(v):
- return v if v is None else int(v)
+def int_or_none(v, scale=1):
+ return v if v is None else (int(v) // scale)
def parse_duration(s):