FIX: Михаил Палыч bug

This commit is contained in:
Keroosha 2023-02-28 02:26:55 +03:00
parent 893d94076f
commit de385d3f49

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[filesize<=50M][ext=mp4]/best[height<=480][ext=mp4]/best[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)]