Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f7593dc0dc |
@@ -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(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user