projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'youtube-dash-manifest'
[youtube-dl]
/
youtube_dl
/
utils.py
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 6c00973bd34dd266ad2b9cf903e6caa9b8e83033..3d29039867efa2b21b005a035c9cbf5c43bb5d71 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-1131,8
+1131,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):