Merge branch 'youtube-dash-manifest'
Conflicts: youtube_dl/extractor/youtube.py
This commit is contained in:
commit
50317b111d
4 changed files with 76 additions and 27 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue