Album covers, logos and descriptions from the web

- Search online from an album's Edit dialog: covers from TheAudioDB,
  Deezer, Apple Music and the Cover Art Archive, logos from Wikidata,
  Wikimedia Commons and the artist's TheAudioDB logo, and a Wikipedia
  page for the description
- Album pages show the logo and an About section, looked up
  automatically when "Find artist and album info" is on
- Your own logo file and About text, kept in albums.json
- Clean no longer deletes artist or album logos; backups include them
- Artist pages credit the real bio source
- Home shelves show exactly one row instead of peeking into a second
- Window buttons use the native Windows icon font so they stay sharp
  at any display scale
- Web requests identify Atmosphere with its repo link
This commit is contained in:
Christian
2026-11-20 17:25:42 -05:00
parent c5c3357666
commit 6430c1ffc1
11 changed files with 792 additions and 36 deletions
+7 -1
View File
@@ -57,7 +57,13 @@ fn stalled(settings: &Settings) -> Vec<PathBuf> {
}
fn orphan_art(lib: &Snapshot) -> Vec<PathBuf> {
let used: HashSet<String> = lib.tracks.iter().filter_map(|t| t.art.clone()).chain(lib.artists.values().filter_map(|a| a.image.clone())).collect();
let used: HashSet<String> = lib
.tracks
.iter()
.filter_map(|t| t.art.clone())
.chain(lib.artists.values().flat_map(|a| [a.image.clone(), a.logo.clone()]).flatten())
.chain(lib.albums.values().filter_map(|a| a.logo.clone()))
.collect();
let mut out = Vec::new();
walk(&data_dir().join("art"), 0, &mut out, &|p| p.file_stem().and_then(|s| s.to_str()).is_some_and(|s| !used.contains(s)));
out