This commit is contained in:
nikili0n 2023-09-25 21:20:58 +03:00
parent 678ed18fa6
commit 227f8ab6e0
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import errno import errno
import os import os
from loguru import logger # from loguru import logger
from src.core.ydl import VideoDownloader from src.core.ydl import VideoDownloader
from src.exceptions.download_exceptions import FileAlreadyExistException from src.exceptions.download_exceptions import FileAlreadyExistException
@ -17,7 +17,7 @@ class BaseParser:
def video_download(self): def video_download(self):
ydl_opts = { ydl_opts = {
"format": self.params["format"], "format": self.params["format"],
"logger": logger, # "logger": logger,
"merge_output_format": self.params["merge_output_format"], "merge_output_format": self.params["merge_output_format"],
'outtmpl': self.params["outtmpl"], 'outtmpl': self.params["outtmpl"],
"quiet": True "quiet": True

View File

@ -5,7 +5,7 @@ from ast import literal_eval
import uvicorn import uvicorn
from aio_pika import connect, Message, DeliveryMode from aio_pika import connect, Message, DeliveryMode
from fastapi import FastAPI, Request, Depends from fastapi import FastAPI, Request, Depends
from loguru import logger from logging import logger
from starlette.middleware.cors import CORSMiddleware from starlette.middleware.cors import CORSMiddleware
from starlette.responses import JSONResponse, FileResponse, StreamingResponse from starlette.responses import JSONResponse, FileResponse, StreamingResponse
from starlette.templating import Jinja2Templates from starlette.templating import Jinja2Templates