From c35a950f1de659b5a1df02db21a5278d057a2bdd Mon Sep 17 00:00:00 2001 From: Dantenerosas Date: Mon, 25 Sep 2023 21:20:58 +0300 Subject: [PATCH] up --- src/parsers/base_parser.py | 4 ++-- src/web/main.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parsers/base_parser.py b/src/parsers/base_parser.py index fecd537..0b5c1f8 100644 --- a/src/parsers/base_parser.py +++ b/src/parsers/base_parser.py @@ -1,7 +1,7 @@ import errno import os -from loguru import logger +# from loguru import logger from src.core.ydl import VideoDownloader from src.exceptions.download_exceptions import FileAlreadyExistException @@ -17,7 +17,7 @@ class BaseParser: def video_download(self): ydl_opts = { "format": self.params["format"], - "logger": logger, + # "logger": logger, "merge_output_format": self.params["merge_output_format"], 'outtmpl': self.params["outtmpl"], "quiet": True diff --git a/src/web/main.py b/src/web/main.py index edd50a6..8d6073e 100644 --- a/src/web/main.py +++ b/src/web/main.py @@ -5,7 +5,7 @@ from ast import literal_eval import uvicorn from aio_pika import connect, Message, DeliveryMode from fastapi import FastAPI, Request, Depends -from loguru import logger +from logging import logger from starlette.middleware.cors import CORSMiddleware from starlette.responses import JSONResponse, FileResponse, StreamingResponse from starlette.templating import Jinja2Templates