Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Default empty metadata fields to Unknown

+20
+20
crates/library/src/audio_scan.rs
··· 123 123 let album = track_album(&entry, &title); 124 124 let album_art = extract_and_save_album_cover_with_key(metadata_path, Some(&album))?; 125 125 126 + let title = match title.is_empty() { 127 + true => "Unknown Title".to_string(), 128 + false => title, 129 + }; 130 + 131 + let artist = match artist.is_empty() { 132 + true => "Unknown Artist".to_string(), 133 + false => artist, 134 + }; 135 + 136 + let album_artist = match album_artist.is_empty() { 137 + true => "Unknown Artist".to_string(), 138 + false => album_artist, 139 + }; 140 + 141 + let album = match album.is_empty() { 142 + true => "Unknown Album".to_string(), 143 + false => album, 144 + }; 145 + 126 146 if let Some(existing_track) = existing_track { 127 147 if let Some(ref album_art) = album_art { 128 148 if existing_track.album_art.as_deref() != Some(album_art.as_str()) {