several small ui updates, plus hopefully a track-matching fix for real this time

This commit is contained in:
Connor Johnstone
2026-04-01 22:41:46 -04:00
parent 8193eebf13
commit f7593dc0dc
+2 -5
View File
@@ -1091,12 +1091,9 @@ pub async fn get_similar_songs2(req: HttpRequest, state: web::Data<AppState>) ->
Ok(playlist) => { Ok(playlist) => {
let mut songs = Vec::new(); let mut songs = Vec::new();
for pt in &playlist.tracks { for pt in &playlist.tracks {
if let Ok(track) = if let Ok(track) = queries::tracks::get_by_id(state.db.conn(), pt.track_id).await {
queries::tracks::get_by_id(state.db.conn(), pt.track_id).await
{
songs.push( songs.push(
serde_json::to_value(SubsonicChild::from_track(&track)) serde_json::to_value(SubsonicChild::from_track(&track)).unwrap_or_default(),
.unwrap_or_default(),
); );
} }
} }