mp3-tagger icon indicating copy to clipboard operation
mp3-tagger copied to clipboard

MP3OpenFileError('File must be MP3 format')

Open hsmett opened this issue 5 years ago • 0 comments

When reading files, the following check is done:

if self.path.endswith('.mp3'):

Which is a problem if you which to handle badly named files sur as ".MP3".

Would turn it into a case insensitive check, ie

if self.path.lower().endswith('.mp3'):

or even maybe

_, extension = os.path.splitext(self.path)
if extension.lower() == ".mp3":

Thank you!

hsmett avatar May 10 '19 11:05 hsmett