From d59edb43e4cd50f1f20eed088000222a6001d418 Mon Sep 17 00:00:00 2001 From: 5hojib Date: Tue, 7 Jan 2025 12:45:52 +0600 Subject: [PATCH] update caption_gen.py --- bot/helper/aeon_utils/caption_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/helper/aeon_utils/caption_gen.py b/bot/helper/aeon_utils/caption_gen.py index 1c1831bb8..f4165d5ca 100644 --- a/bot/helper/aeon_utils/caption_gen.py +++ b/bot/helper/aeon_utils/caption_gen.py @@ -63,7 +63,7 @@ async def generate_caption(filename, directory, caption_template): caption_data = DefaultDict( filename=filename, size=get_readable_file_size(await aiopath.getsize(file_path)), - duration=get_readable_time(video_duration, True), + duration=get_readable_time(int(video_duration), True), quality=video_quality, audios=audio_languages, subtitles=subtitle_languages,