From f0fdaf6f8e4b90f048e5371a0a5d173f0072979d Mon Sep 17 00:00:00 2001 From: Javanaut Date: Tue, 24 Oct 2023 15:21:32 +0200 Subject: [PATCH] fix dict --- bin/ffx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ffx.py b/bin/ffx.py index 8f31218..937bda9 100755 --- a/bin/ffx.py +++ b/bin/ffx.py @@ -116,7 +116,7 @@ audioStreams = [s for s in streamData if s['codec_type'] == 'audio'] subtitleStreams = [s for s in streamData if s['codec_type'] == 'subtitle'] for aStream in audioStreams: - if 'channel_layout' in aStream.keys(): + if 'channel_layout' in aStream: print(f"audio stream: {aStream['channel_layout']}") #channel_layout else: print(f"unknown audio stream with {aStream['channels']} channels") #channel_layout