mirror of
https://github.com/pvrzz/atmosphere.git
synced 2026-11-29 05:22:26 +00:00
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:
+7
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user