Skip to content

Commit

Permalink
Auto-format code [skip actions]
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Jan 2, 2025
1 parent 19bdf6b commit 09ade24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 1 addition & 5 deletions bot/helper/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,11 +686,7 @@ async def proceed_extract(self, dl_path, gid):
LOGGER.error(
f"{stderr}. Unable to extract archive splits!. Path: {f_path}",
)
if (
not self.seed
and self.subproc is not None
and code == 0
):
if not self.seed and self.subproc is not None and code == 0:
for file_ in files:
if is_archive_split(file_) or is_archive(file_):
del_path = ospath.join(dirpath, file_)
Expand Down
11 changes: 8 additions & 3 deletions bot/modules/mediainfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from bot.helper.telegram_helper.button_build import ButtonMaker
from bot.helper.telegram_helper.message_utils import (
delete_links,
delete_message,
edit_message,
five_minute_del,
send_message,
delete_message,
)


Expand Down Expand Up @@ -66,9 +66,14 @@ async def gen_mediainfo(message, link=None, media=None, msg=None):
await aioremove(des_path)

link_id = (await telegraph.create_page(title="MediaInfo", content=tc))["path"]
link = f'https://graph.org/{link_id}'
link = f"https://graph.org/{link_id}"
await delete_message(temp_send)
await TgClient.bot.send_web_page(message.chat.id, link, "<blockquote>MediaInfo generated successfully.</blockquote>", invert_media=True)
await TgClient.bot.send_web_page(
message.chat.id,
link,
"<blockquote>MediaInfo generated successfully.</blockquote>",
invert_media=True,
)
await temp_send.edit(
f,
disable_web_page_preview=False,
Expand Down

0 comments on commit 09ade24

Please sign in to comment.