🐛 Items in album reversed order

This commit is contained in:
Manuel 2023-03-29 21:14:48 +02:00 committed by Manuel
parent 32afd480e8
commit 8c5739a9e5
2 changed files with 3 additions and 4 deletions

View File

@ -104,9 +104,9 @@ export class JellyfinSearchService {
return [];
}
return axiosResponse.data.SearchHints.map((hint) =>
SearchHint.constructFromHint(hint),
);
return [...axiosResponse.data.SearchHints]
.reverse()
.map((hint) => SearchHint.constructFromHint(hint));
}
async getById(

View File

@ -18,7 +18,6 @@ export class AlbumSearchHint extends SearchHint {
searchService: JellyfinSearchService,
): Promise<Track[]> {
const remoteImages = await searchService.getRemoteImageById(this.id);
const albumItems = await searchService.getAlbumItems(this.id);
const tracks = await Promise.all(
albumItems.map(async (x) =>