mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-25 02:51:57 +01:00
🐛 Items in album reversed order
This commit is contained in:
parent
32afd480e8
commit
8c5739a9e5
@ -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(
|
||||
|
@ -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) =>
|
||||
|
Loading…
Reference in New Issue
Block a user