From ae4ec7fb1bcc8d71c362b022fcc5a27ba61d13ff Mon Sep 17 00:00:00 2001 From: Taaha Mahdi Date: Thu, 18 Jan 2024 19:44:38 -0500 Subject: [PATCH] Increase lookup results to 10 per page (#1819) --- src/commands/game_commands/lookup.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/game_commands/lookup.ts b/src/commands/game_commands/lookup.ts index 690e5a088..7e035631e 100644 --- a/src/commands/game_commands/lookup.ts +++ b/src/commands/game_commands/lookup.ts @@ -53,6 +53,8 @@ const SONG_LINK = "song_link"; const ARTIST_NAME = "artist_name"; const logger = new IPCLogger(COMMAND_NAME); +const ENTRIES_PER_PAGE = 10; + const getDaisukiLink = (id: number, isMV: boolean): string => { if (isMV) { return `https://kpop.daisuki.com.br/mv.html?id=${id}`; @@ -383,7 +385,7 @@ async function lookupBySongName( value: `https://youtu.be/${entry.youtubeLink}`, })); - const embedFieldSubsets = chunkArray(songEmbeds, 5); + const embedFieldSubsets = chunkArray(songEmbeds, ENTRIES_PER_PAGE); const embeds: Array = embedFieldSubsets.map( (embedFieldsSubset) => ({ title: i18n.translate(