navidrome/persistence
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
..
album_repository.go Check MIME type for cover on refresh, display 2020-06-24 20:48:42 -04:00
album_repository_test.go Fix staticcheck's SA1029 2020-05-13 16:49:55 -04:00
artist_repository.go Add ToggleStar to SongContextMenu (WIP) 2020-05-22 15:23:42 -04:00
artist_repository_test.go Fix staticcheck's SA1029 2020-05-13 16:49:55 -04:00
genre_repository.go refactor: consolidate query executions into two functions `queryOne` and `queryAll` 2020-02-01 17:23:03 -05:00
genre_repository_test.go Fixing static checks about passing nil context 2020-04-26 15:07:36 -04:00
helpers.go Create relation table for playlist tracks 2020-05-16 18:35:34 -04:00
helpers_test.go Add helper functions tests 2020-05-16 18:35:34 -04:00
mediafile_repository.go Support Windows paths 2020-06-14 03:11:16 -04:00
mediafile_repository_test.go Fix `child.size` and `directory.playCount` compatibility with Subsonic API. Fixes #304 2020-05-19 23:51:23 -04:00
mediafolders_repository.go Make MediaFolder ID int32 2020-05-09 22:29:02 -04:00
mock_album_repo.go Fix tests for Cover service 2020-04-09 12:13:54 -04:00
mock_artist_repo.go Fix tests for Cover service 2020-04-09 12:13:54 -04:00
mock_mediafile_repo.go Fix tests for Cover service 2020-04-09 12:13:54 -04:00
mock_persistence.go feat: add `transcodedSuffix` to Subsonic API responses 2020-03-17 15:20:35 -04:00
persistence.go Remove orphan tracks from playlists after they are removed from library 2020-05-18 20:32:01 -04:00
persistence_suite_test.go Handle playlist's permissions on server 2020-06-05 11:55:29 -04:00
player_repository.go Add referential integrity to player and playlist tables 2020-06-10 18:07:10 -04:00
playlist_repository.go No need to delete the playlist tracks explicitly 2020-06-10 18:07:10 -04:00
playlist_repository_test.go Check permissions in playlists 2020-05-16 23:14:28 -04:00
playlist_track_repository.go Call `ffmpeg` in batches 2020-06-14 03:11:16 -04:00
property_repository.go refactor: removed unused code, unnecessary typecasts and fixed small warnings 2020-03-20 00:07:36 -04:00
property_repository_test.go Fixing static checks about passing nil context 2020-04-26 15:07:36 -04:00
sql_annotations.go Add ToggleStar to SongContextMenu (WIP) 2020-05-22 15:23:42 -04:00
sql_base_repository.go Add ToggleStar to SongContextMenu (WIP) 2020-05-22 15:23:42 -04:00
sql_restful.go Add more options to Players list 2020-06-10 18:07:10 -04:00
sql_restful_test.go fix: configured transcodings not appearing in players view 2020-03-27 19:12:11 -04:00
sql_search.go Ignore brackets in search 2020-05-25 11:05:30 -04:00
sql_search_test.go Ignore brackets in search 2020-05-25 11:05:30 -04:00
transcoding_repository.go refactor: extracted restful helpers into their own composable struct 2020-03-21 20:00:46 -04:00
user_repository.go refactor: extracted restful helpers into their own composable struct 2020-03-21 20:00:46 -04:00
user_repository_test.go Fixing static checks about passing nil context 2020-04-26 15:07:36 -04:00