Skip to content

Commit

Permalink
update qbit_listener.py
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Jan 5, 2025
1 parent d7fcaa8 commit f4374b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot/helper/listeners/qbit_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ async def _on_seed_finish(tor):
async def _stop_duplicate(tor):
if (task := await get_task_by_gid(tor.hash[:12])) and task.listener.stop_duplicate:
task.listener.name = tor.content_path.rsplit("/", 1)[-1].rsplit(".!qB", 1)[0]
msg, button = await stop_duplicate_check(task.listener)
if msg:
_on_download_error(msg, tor, button)
msg, button = await stop_duplicate_check(task.listener)
if msg:
_on_download_error(msg, tor, button)


@new_task
Expand Down

0 comments on commit f4374b1

Please sign in to comment.