mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-08 18:37:09 +02:00
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. |
||
|---|---|---|
| .. | ||
| album_repository.go | ||
| album_repository_test.go | ||
| artist_repository.go | ||
| artist_repository_test.go | ||
| genre_repository.go | ||
| genre_repository_test.go | ||
| helpers.go | ||
| helpers_test.go | ||
| mediafile_repository.go | ||
| mediafile_repository_test.go | ||
| mediafolders_repository.go | ||
| mock_album_repo.go | ||
| mock_artist_repo.go | ||
| mock_mediafile_repo.go | ||
| mock_persistence.go | ||
| persistence.go | ||
| persistence_suite_test.go | ||
| player_repository.go | ||
| playlist_repository.go | ||
| playlist_repository_test.go | ||
| playlist_track_repository.go | ||
| property_repository.go | ||
| property_repository_test.go | ||
| sql_annotations.go | ||
| sql_base_repository.go | ||
| sql_restful.go | ||
| sql_restful_test.go | ||
| sql_search.go | ||
| sql_search_test.go | ||
| transcoding_repository.go | ||
| user_repository.go | ||
| user_repository_test.go | ||