Skip to content

Commit

Permalink
Increase lookup results to 10 per page
Browse files Browse the repository at this point in the history
  • Loading branch information
taahamahdi committed Jan 18, 2024
1 parent 1b147e3 commit b097bf7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/game_commands/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down Expand Up @@ -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<EmbedOptions> = embedFieldSubsets.map(
(embedFieldsSubset) => ({
title: i18n.translate(
Expand Down

0 comments on commit b097bf7

Please sign in to comment.