Compare commits

..

1 Commits

Author SHA1 Message Date
Connor Johnstone f7593dc0dc several small ui updates, plus hopefully a track-matching fix for real this time 2026-04-01 22:41:46 -04:00
+2 -5
View File
@@ -1091,12 +1091,9 @@ pub async fn get_similar_songs2(req: HttpRequest, state: web::Data<AppState>) ->
Ok(playlist) => {
let mut songs = Vec::new();
for pt in &playlist.tracks {
if let Ok(track) =
queries::tracks::get_by_id(state.db.conn(), pt.track_id).await
{
if let Ok(track) = queries::tracks::get_by_id(state.db.conn(), pt.track_id).await {
songs.push(
serde_json::to_value(SubsonicChild::from_track(&track))
.unwrap_or_default(),
serde_json::to_value(SubsonicChild::from_track(&track)).unwrap_or_default(),
);
}
}