projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[youtube] Download DASH manifest
[youtube-dl]
/
youtube_dl
/
utils.py
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 73fe1ad0a3a27165d3dffc61927733beb9c5ed33..879394d881408bc37fd504cf27a7b67d177e98f2 100644
(file)
--- 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):