quintodrome/engine
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
..
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 Load cover art from file directory 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