🐛 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 [];
} }
return axiosResponse.data.SearchHints.map((hint) => return [...axiosResponse.data.SearchHints]
SearchHint.constructFromHint(hint), .reverse()
); .map((hint) => SearchHint.constructFromHint(hint));
} }
async getById( async getById(

View File

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