fix dict
This commit is contained in:
@@ -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']
|
subtitleStreams = [s for s in streamData if s['codec_type'] == 'subtitle']
|
||||||
|
|
||||||
for aStream in audioStreams:
|
for aStream in audioStreams:
|
||||||
if 'channel_layout' in aStream.keys():
|
if 'channel_layout' in aStream:
|
||||||
print(f"audio stream: {aStream['channel_layout']}") #channel_layout
|
print(f"audio stream: {aStream['channel_layout']}") #channel_layout
|
||||||
else:
|
else:
|
||||||
print(f"unknown audio stream with {aStream['channels']} channels") #channel_layout
|
print(f"unknown audio stream with {aStream['channels']} channels") #channel_layout
|
||||||
|
|||||||
Reference in New Issue
Block a user