From 7118c82e198367523ae3eca08e6f9e71a0a295f3 Mon Sep 17 00:00:00 2001 From: 5hojib Date: Tue, 7 Jan 2025 06:39:47 +0000 Subject: [PATCH] Auto-format code [skip actions] --- bot/helper/aeon_utils/caption_gen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/helper/aeon_utils/caption_gen.py b/bot/helper/aeon_utils/caption_gen.py index e06968626..1c1831bb8 100644 --- a/bot/helper/aeon_utils/caption_gen.py +++ b/bot/helper/aeon_utils/caption_gen.py @@ -35,7 +35,8 @@ async def generate_caption(filename, directory, caption_template): media_data = mediainfo_data.get("media", {}) track_data = media_data.get("track", []) video_metadata = next( - (track for track in track_data if track["@type"] == "Video"), {} + (track for track in track_data if track["@type"] == "Video"), + {}, ) audio_metadata = [track for track in track_data if track["@type"] == "Audio"] subtitle_metadata = [track for track in track_data if track["@type"] == "Text"]