Skip to content

Commit

Permalink
Fix: Compare filesystem extension as lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Dec 20, 2024
1 parent f4e9624 commit 89caa64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion music_assistant/providers/filesystem_local/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class FileSystemItem:
def ext(self) -> str | None:
"""Return file extension."""
try:
return self.filename.rsplit(".", 1)[1]
# convert to lowercase to make it case insensitive when comparing
return self.filename.rsplit(".", 1)[1].lower()
except IndexError:
return None

Expand Down

0 comments on commit 89caa64

Please sign in to comment.