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 [];
|
||||||
}
|
}
|
||||||
|
|
||||||
return axiosResponse.data.SearchHints.map((hint) =>
|
return [...axiosResponse.data.SearchHints]
|
||||||
SearchHint.constructFromHint(hint),
|
.reverse()
|
||||||
);
|
.map((hint) => SearchHint.constructFromHint(hint));
|
||||||
}
|
}
|
||||||
|
|
||||||
async getById(
|
async getById(
|
||||||
|
@ -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) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user