CC-4416: Error with AAC files and Replaygain

-fixed
This commit is contained in:
Martin Konecny 2012-09-13 11:06:44 -04:00
parent 4fc278a55a
commit 50f723fa7a

View file

@ -58,7 +58,7 @@ def get_file_type(file_path):
elif re.search(r'flac$', file_path, re.IGNORECASE): elif re.search(r'flac$', file_path, re.IGNORECASE):
file_type = 'flac' file_type = 'flac'
else: else:
mime_type = get_mime_type(file_path) == "audio/mpeg" mime_type = get_mime_type(file_path)
if 'mpeg' in mime_type: if 'mpeg' in mime_type:
file_type = 'mp3' file_type = 'mp3'
elif 'ogg' in mime_type: elif 'ogg' in mime_type: