diff --git a/music_assistant/providers/filesystem_local/__init__.py b/music_assistant/providers/filesystem_local/__init__.py index 8a332d771..fe2c76d6f 100644 --- a/music_assistant/providers/filesystem_local/__init__.py +++ b/music_assistant/providers/filesystem_local/__init__.py @@ -314,7 +314,7 @@ async def _process_item(self, item: FileSystemItem, prev_checksum: str | None) - """Process a single item.""" try: self.logger.debug("Processing: %s", item.path) - if item.ext in TRACK_EXTENSIONS: + if item.ext.lower() in TRACK_EXTENSIONS: # add/update track to db # note that filesystem items are always overwriting existing info # when they are detected as changed @@ -322,7 +322,7 @@ async def _process_item(self, item: FileSystemItem, prev_checksum: str | None) - await self.mass.music.tracks.add_item_to_library( track, overwrite_existing=prev_checksum is not None ) - elif item.ext in PLAYLIST_EXTENSIONS: + elif item.ext.lower() in PLAYLIST_EXTENSIONS: playlist = await self.get_playlist(item.path) # add/update] playlist to db playlist.cache_checksum = item.checksum