This commit is contained in:
Vladislav Khapin 2023-02-26 20:28:48 +04:00
parent fe0e9fb888
commit 48ca811dd9

View File

@ -22,7 +22,7 @@ def report_state(id: str):
def load_video(url: str, file_path: str, id: str): def load_video(url: str, file_path: str, id: str):
try: try:
opts = { opts = {
"format": 'best[height<=480][ext=mp4]/bestvideo+bestaudio[ext=mp4]', "format": 'best[height<=480][ext=mp4]/best[ext=mp4]',
"quiet": True, "quiet": True,
"outtmpl": file_path, "outtmpl": file_path,
"progress_hooks": [report_state(id)] "progress_hooks": [report_state(id)]