Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
Signed-off-by: anasty17 <[email protected]>
  • Loading branch information
anasty17 committed Nov 6, 2023
1 parent 0f76a27 commit fcd11e8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bot/helper/listeners/direct_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def download(self, contents):

async def cancel_task(self):
self._is_cancelled = True
LOGGER.info(f"Cancelling Download: {self.name}")
LOGGER.info(f"Cancelling Download: {self._listener.name}")
await self._listener.onDownloadError("Download Cancelled by User!")
if self.task:
await sync_to_async(self.task.remove, force=True, files=True)
2 changes: 1 addition & 1 deletion bot/helper/mirror_utils/download_utils/mega_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, continue_event: Event, listener):
self._bytes_transferred = 0
self._speed = 0
self._name = ""
super()._init_()
super().__init__()

@property
def speed(self):
Expand Down
2 changes: 1 addition & 1 deletion bot/helper/mirror_utils/status_utils/direct_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def speed(self):
return f"{get_readable_file_size(self._obj.speed)}/s"

def name(self):
return self._obj.name
return self.listener.name

def size(self):
return get_readable_file_size(self._obj.total_size)
Expand Down
2 changes: 1 addition & 1 deletion bot/modules/clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async def newEvent(self):
self.run_multi(input_list, "", Clone)

if len(self.link) == 0:
await sendMessage(self.message, CLONE_HELP_MESSAGE)
await sendMessage(self.message, "Open this link for usage help!", COMMAND_USAGE["clone"])
return
await self.beforeStart()
await self._proceedToClone()
Expand Down
4 changes: 2 additions & 2 deletions bot/modules/ytdlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ async def _mdisk(link, name):


class YtDlp(TaskListener):
def _init_(
def __init__(
self,
client,
message,
Expand All @@ -273,7 +273,7 @@ def _init_(
sameDir = {}
if bulk is None:
bulk = []
super()._init_(message)
super().__init__(message)
self.client = client
self.isLeech = isLeech
self.isYtDlp = True
Expand Down

0 comments on commit fcd11e8

Please sign in to comment.