{{desc}}
+{{{desc}}}
From a724a1931a34f7bc27c77a74bcd94c4c84373e3a Mon Sep 17 00:00:00 2001
From: Hunam <38606542+Hunam6@users.noreply.github.com>
Date: Tue, 8 Jun 2021 19:55:10 +0100
Subject: [PATCH] fix(all): fix description
---
pages/all.hbs | 6 +++---
src/all.ts | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pages/all.hbs b/pages/all.hbs
index 07970df..4ba3dac 100644
--- a/pages/all.hbs
+++ b/pages/all.hbs
@@ -84,13 +84,13 @@
{{firstResult.title}}
{{firstResult.shownLink}}
-
{{firstResult.desc}} +
{{{firstResult.desc}}}
{{desc}}
+{{{desc}}}
{{desc}}
+{{{desc}}}
{{/results}} diff --git a/src/all.ts b/src/all.ts index 66fb3b3..62073e3 100644 --- a/src/all.ts +++ b/src/all.ts @@ -95,7 +95,7 @@ export const all = async (doc: Document, lang: string) => { //Results doc.querySelectorAll('.LC20lb.DKV0Md').forEach((el, i) => (data.results[i] = {title: el.textContent})) //results title - doc.querySelectorAll('.aCOpRe').forEach((el, i) => (data.results[i].desc = el.textContent)) //results description + doc.querySelectorAll('.IsZvec').forEach((el, i) => (data.results[i].desc = el.children[0].innerHTML)) //results description doc.querySelectorAll('.TbwUpd.NJjxre').forEach((el, i) => (data.results[i].shownLink = el.textContent)) //results shown link doc.querySelectorAll('.yuRUbf').forEach((el, i) => (data.results[i].link = el.children[0].getAttribute('href')!)) //results link if (!noFirstResult) data.firstResult = data.results.shift() //first result