Skip to content

Commit

Permalink
Update tasks.py (#356)
Browse files Browse the repository at this point in the history
* Update tasks.py

fix 'Downloaded by  馃ぉ'

* Update tasks.py
  • Loading branch information
deusyu committed Feb 19, 2024
1 parent 0f6f0cc commit cd8dae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ytdlbot/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cd8dae8

Please sign in to comment.