From 29eb54673b5871a5d65df0e67d499bc74541ece7 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 13 Jan 2021 17:25:27 -0500 Subject: [PATCH] Fix --- commands/search/mayo-clinic.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/search/mayo-clinic.js b/commands/search/mayo-clinic.js index 7f79022f..955a8890 100644 --- a/commands/search/mayo-clinic.js +++ b/commands/search/mayo-clinic.js @@ -63,10 +63,11 @@ module.exports = class MayoClinicCommand extends Command { const $ = cheerio.load(text); const header = $('h2').first(); if (header.text() === 'Overview') { + const caption = $('p[class="caption"]').first().next().text().trim(); return { name: $('h1').first().text().trim(), url: location, - description: header.next().text().trim() + description: caption || header.next().text().trim() }; } return location;