get the right resolution
This commit is contained in:
parent
a537963b9f
commit
4c415c6b5d
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ def download(item_id, url, referer=None):
|
||||||
format = settings.CONFIG['video']['formats'][0]
|
format = settings.CONFIG['video']['formats'][0]
|
||||||
if format == 'mp4':
|
if format == 'mp4':
|
||||||
cmd += [
|
cmd += [
|
||||||
'-f', 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio',
|
'-f', 'bestvideo[height<=%s][ext=mp4]+bestaudio[ext=m4a]' % max_resolution,
|
||||||
'--merge-output-format', 'mp4'
|
'--merge-output-format', 'mp4'
|
||||||
]
|
]
|
||||||
elif format == 'webm':
|
elif format == 'webm':
|
||||||
|
|
Loading…
Reference in a new issue