From cd8dae87d21ef04bd1ea214e832f1baf2d76ecf1 Mon Sep 17 00:00:00 2001 From: Daniel <42929363+deusyu@users.noreply.github.com> Date: Mon, 19 Feb 2024 23:10:39 +0800 Subject: [PATCH] Update tasks.py (#356) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update tasks.py fix 'Downloaded by 🤩' * Update tasks.py --- ytdlbot/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytdlbot/tasks.py b/ytdlbot/tasks.py index ee91bd28..860129e0 100644 --- a/ytdlbot/tasks.py +++ b/ytdlbot/tasks.py @@ -179,7 +179,7 @@ def ytdl_download_entrance(client: Client, bot_msg: types.Message, url: str, mod redis.update_metrics("cache_hit") return redis.update_metrics("cache_miss") - mode = mode or payment.get_user_settings(chat_id)[-1] + mode = mode or payment.get_user_settings(chat_id)[3] if ENABLE_CELERY and mode in [None, "Celery"]: # in celery mode, producer has lost control of this task. ytdl_download_task.delay(chat_id, bot_msg.id, url)