Fixed a bug where search results were capped at 200 songs
This commit is contained in:
parent
b943d9aa11
commit
f21f906eaf
1 changed files with 1 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue