Fixed a bug where search results were capped at 200 songs

This commit is contained in:
Antoine Gersant 2024-09-25 17:25:01 -07:00
parent b943d9aa11
commit f21f906eaf

View file

@ -519,14 +519,8 @@ async fn get_search(
Err(e) => return APIError::from(e).into_response(),
};
let paths = songs
.iter()
.take(SONG_LIST_CAPACITY)
.map(|s| s.virtual_path.clone())
.collect();
let song_list = dto::SongList {
paths,
paths: songs.iter().map(|s| s.virtual_path.clone()).collect(),
first_songs: songs
.into_iter()
.take(SONG_LIST_CAPACITY)