diff --git a/bot/helper/aeon_utils/caption_gen.py b/bot/helper/aeon_utils/caption_gen.py index c4e98638f..1348bc836 100644 --- a/bot/helper/aeon_utils/caption_gen.py +++ b/bot/helper/aeon_utils/caption_gen.py @@ -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))) diff --git a/bot/helper/mirror_leech_utils/telegram_uploader.py b/bot/helper/mirror_leech_utils/telegram_uploader.py index 7f5e7e605..ca0d2a6b8 100644 --- a/bot/helper/mirror_leech_utils/telegram_uploader.py +++ b/bot/helper/mirror_leech_utils/telegram_uploader.py @@ -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