fix video size
This commit is contained in:
parent
2e8d927e20
commit
07b589e2a0
6 changed files with 107 additions and 42 deletions
|
@ -22,7 +22,7 @@ def report_state(id: str):
|
|||
def load_video(url: str, file_path: str, id: str):
|
||||
try:
|
||||
opts = {
|
||||
"format": 'best[height<=480][ext=mp4]/best[ext=mp4]',
|
||||
"format": 'best[filesize<=50M][ext=mp4]/best[height<=480][ext=mp4]/best[ext=mp4]',
|
||||
"quiet": True,
|
||||
"outtmpl": file_path,
|
||||
"progress_hooks": [report_state(id)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue