diff --git a/ytdlbot/client_init.py b/ytdlbot/client_init.py index 5972514..51e4072 100644 --- a/ytdlbot/client_init.py +++ b/ytdlbot/client_init.py @@ -9,13 +9,13 @@ __author__ = "Benny " from pyrogram import Client -from config import APP_HASH, APP_ID, TOKEN, WORKERS +from config import APP_HASH, APP_ID, TOKEN -def create_app(session="ytdl", workers=WORKERS): +def create_app(session="ytdl", workers=100): _app = Client(session, APP_ID, APP_HASH, bot_token=TOKEN, workers=workers, - # proxy={"hostname": "host.docker.internal", "port": 1086} + # proxy={"hostname": "host.docker.internal", "port": 1080} ) return _app diff --git a/ytdlbot/limit.py b/ytdlbot/limit.py index c896bd0..3d74b4f 100644 --- a/ytdlbot/limit.py +++ b/ytdlbot/limit.py @@ -118,7 +118,7 @@ class VIP(Redis, MySQL): if href not in ["null", "", None]: return href except Exception: - logging.warning("Canonical exception %s soup.find(%s, %s=%s) --> %s", url, tag, kw, v, result) + logging.warning("Canonical exception %s", url) return url diff --git a/ytdlbot/tasks.py b/ytdlbot/tasks.py index b26002c..7bc89e7 100644 --- a/ytdlbot/tasks.py +++ b/ytdlbot/tasks.py @@ -299,7 +299,7 @@ def run_celery(): argv = [ "-A", "tasks", 'worker', '--loglevel=info', "--pool=threads", f"--concurrency={WORKERS * 2}", - "-n", f"{os.getenv('WORKER_NAME', '')}" + "-n", os.getenv("WORKER_NAME", "") ] app.worker_main(argv)