mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2025-02-24 15:24:03 +08:00
Update tasks.py (#356)
* Update tasks.py
fix 'Downloaded by 🤩'
* Update tasks.py
This commit is contained in:
parent
0f6f0cc34e
commit
cd8dae87d2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue