Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Sep 18, 2024
1 parent b0f40eb commit e18fda8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion bot/helper/aeon_utils/caption_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ async def generate_caption(file, dirpath, lcaption):

format_info = ffresult.get("format")
if not format_info:
LOGGER.error(f"Media Info Sections: {result}")
return file

duration = round(float(format_info.get("duration", 0)))
Expand Down
4 changes: 2 additions & 2 deletions bot/helper/mirror_leech_utils/telegram_uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,8 @@ async def _upload_photo(self, cap_mono, thumb):
async def _copy_message(self):
msg = await bot.get_messages(self._listener.upDest, self._sent_msg.id)

async def copy(target):
for attempt in range(5):
async def copy(target, retries=5):
for attempt in range(retries):
try:
await msg.copy(target)
return
Expand Down

0 comments on commit e18fda8

Please sign in to comment.