Skip to content

Commit a4b32b7

Browse files
plotskimueslo
authored andcommitted
Default to previous method of detecting MP3
1 parent 0f48cf7 commit a4b32b7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pythonbits/bb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,8 @@ 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_hint'] == 'MP3':
459+
if (audio_track.get('codec_id_hint') == 'MP3' or
460+
audio_track['codec_id'] in ('MPA1L3', '55')):
460461
return 'MP3'
461462
elif audio_track['codec_id'].lower().startswith('mp4a'):
462463
return 'AAC'

0 commit comments

Comments
 (0)