From c506103b7dc31dda0d46727009a7f66e74d5299f Mon Sep 17 00:00:00 2001 From: lilyissillyyy Date: Sat, 30 Aug 2025 14:55:03 -0400 Subject: [PATCH] Fix kym meme titles --- commands/search/know-your-meme.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/commands/search/know-your-meme.js b/commands/search/know-your-meme.js index b56c0047..d503fe0d 100644 --- a/commands/search/know-your-meme.js +++ b/commands/search/know-your-meme.js @@ -46,11 +46,7 @@ module.exports = class KnowYourMemeCommand extends Command { async search(query) { const { text } = await request .get('https://knowyourmeme.com/search') - .query({ - q: query, - sort: 'views', - context: 'entries' - }); + .query({ q: query }); const $ = cheerio.load(text); const location = $('section[class="gallery"]').find('a[class="item"]').first().attr('href'); if (!location) return null; @@ -64,7 +60,7 @@ module.exports = class KnowYourMemeCommand extends Command { || $('a[class="photo left "]').first().attr('href') || null; return { - name: $('h1').first().text().trim(), + name: $('h1[class="content-title entry-title"]').first().text().trim(), url: `https://knowyourmeme.com${location}`, description: this.getMemeDescription($), thumbnail