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 7, 2025
1 parent 05e7713 commit 7118c82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot/helper/aeon_utils/caption_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 7118c82

Please sign in to comment.