quintodrome/persistence
Alex Palaistras 08cd28af2d Load cover art from file directory
This commit adds support for loading cover art from media file
directories, according to configured filename priorities (of which an
additional, special choice of `embedded` is given).

Cover art paths are resolved during scanning and stored in the database
as part of the `album.cover_art_path` column; if embedded cover art is
matched, this will default to the path of the media file itself, and if
no cover art is matched at all.

Similarly, the `album.cover_art_id` column will default to a reference
to `media_file.id` if embedded cover art is wanted, but if an external
cover art file is matched, this will instead be set to a reference to
the `album.id` value itself, prefixed with the `al-` constant.

Stored cover art paths are once again resolved and matched against
configuration when covers are requested; that is, any change in
configuration between scanning and requesting cover art may not return
correct data until a re-scan is complete.

Tests will be added in future commits.
2020-06-24 20:48:42 -04:00
..
album_repository.go Load cover art from file directory 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