navidrome/engine
Alex Palaistras ac5d99c079 Check MIME type for cover on refresh, display
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.
2020-06-24 20:48:42 -04:00
..
auth Fixing static checks about passing nil context 2020-04-26 15:07:36 -04:00
transcoder Fix `goimport` and `gosec` warnings 2020-04-26 15:07:36 -04:00
browser.go Fix `child.size` and `directory.playCount` compatibility with Subsonic API. Fixes #304 2020-05-19 23:51:23 -04:00
browser_test.go refactor: more stable transcoder, based on http.FileSystem 2020-02-19 14:53:35 -05:00
common.go Fix `child.size` and `directory.playCount` compatibility with Subsonic API. Fixes #304 2020-05-19 23:51:23 -04:00
cover.go Check MIME type for cover on refresh, display 2020-06-24 20:48:42 -04:00
cover_test.go Fixing static checks about passing nil context 2020-04-26 15:07:36 -04:00
engine_suite_test.go Remove duplicated fscache creation 2020-04-09 13:15:01 -04:00
file_caches.go Allow cache image to be disabled (workaround for #177) 2020-04-14 19:28:54 -04:00
file_caches_test.go Allow cache image to be disabled (workaround for #177) 2020-04-14 19:28:54 -04:00
list_generator.go Enable a couple of linters 2020-04-29 09:03:07 -04:00
media_streamer.go More log to media_streamer 2020-05-21 21:26:48 -04:00
media_streamer_test.go Fix staticcheck's SA1029 2020-05-13 16:49:55 -04:00
mock_transcoding_repo_test.go feat: select correct transcoding for streaming 2020-03-17 15:20:35 -04:00
nowplaying.go Fix all `errcheck` warnings 2020-04-26 15:07:36 -04:00
nowplaying_test.go Rename test file 2020-01-21 18:52:32 -05:00
players.go Always use lowercase username, as it is used for referential integrity. Fixes #352 2020-06-14 20:20:10 -04:00
players_test.go Fix staticcheck's SA1029 2020-05-13 16:49:55 -04:00
playlists.go Check permissions in playlists 2020-05-16 23:14:28 -04:00
ratings.go refactor: annotations 2020-02-01 17:23:03 -05:00
scrobbler.go Fix nil pointer dereference 2020-05-25 10:54:07 -04:00
search.go refactor: remove annotation handling from engine 2020-02-01 17:23:03 -05:00
users.go feat: add authentication via JWT token 2020-02-06 18:41:34 -05:00
users_test.go feat: add authentication via JWT token 2020-02-06 18:41:34 -05:00
wire_providers.go Create and configure image cache 2020-04-05 22:02:06 -04:00