several small ui updates, plus hopefully a track-matching fix for real this time
This commit is contained in:
@@ -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(),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user