Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Jan 1, 2025
1 parent 754b186 commit 5f00d67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bot/modules/mirror_leech.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@ async def new_event(self):
self.link = await reply_to.download()
file_ = None

if (self.link and
(is_magnet(self.link)
or self.link.endswith(".torrent")))
or (file_ and file_.file_name.endswith(".torrent")):
if (
(self.link and (is_magnet(self.link) or self.link.endswith(".torrent")))
or (file_ and file_.file_name.endswith(".torrent"))
):
self.is_qbit = True

if (
Expand Down

0 comments on commit 5f00d67

Please sign in to comment.