Fix file upload, cleanup

This commit is contained in:
Keroosha 2023-02-11 05:28:01 +03:00
parent 0f9b01568e
commit ae829d07d3
2 changed files with 6 additions and 3 deletions

View file

@ -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: