Fix file upload, cleanup
This commit is contained in:
parent
0f9b01568e
commit
ae829d07d3
2 changed files with 6 additions and 3 deletions
|
@ -21,7 +21,9 @@ def report_state(id: str):
|
|||
|
||||
def load_video(url: str, file_path: str, id: str):
|
||||
opts = {
|
||||
"forcefilename": file_path,
|
||||
"format": 'mp4',
|
||||
"quiet": True,
|
||||
"outtmpl": file_path,
|
||||
"progress_hooks": [report_state(id)]
|
||||
}
|
||||
with YoutubeDL(opts) as ydl:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue