mirror of
https://github.com/navidrome/navidrome.git
synced 2026-02-02 06:24:14 +00:00
Files that match the `CoverArtPriority` setting will now be considered eligible only if their extensions are of an 'image/*' MIME type (e.g. '.png' for 'image/png', '.jpg' for 'image/jpeg'). This prevents matching files that will likely not be valid during display. In addition to the above, code for returning the cover image file from scanned data will also check against the MIME type for the path stored, instead of attempting to re-trace `CoverArtPriority` matches. This simplifies the code and bypasses a number of edge-cases related to inconsistent matching.