mp3-tagger
mp3-tagger copied to clipboard
MP3OpenFileError('File must be MP3 format')
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!