Skip to content

Commit 0f48cf7

Browse files
plotskimueslo
authored andcommitted
Better way to detect MP3 (hopefully)
1 parent a7fbdb2 commit 0f48cf7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythonbits/bb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def _render_video_codec(self):
456456

457457
def _render_audio_codec(self):
458458
audio_track = self['tracks']['audio'][0] # main audio track
459-
if audio_track['codec_id'] in ('MPA1L3', '55'):
459+
if audio_track['codec_id_hint'] == 'MP3':
460460
return 'MP3'
461461
elif audio_track['codec_id'].lower().startswith('mp4a'):
462462
return 'AAC'

0 commit comments

Comments
 (0)