From b17099a51ae5c2ca8fe91c46456b5e83528374c2 Mon Sep 17 00:00:00 2001 From: jiaojiaodubai <63148861+jiaojiaodubai@users.noreply.github.com> Date: Fri, 13 Sep 2024 11:59:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E5=AD=A6=E4=BD=8D=E8=AE=BA?= =?UTF-8?q?=E6=96=87=E4=BB=A3=E7=A0=81=E6=89=8B=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CNKI.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CNKI.js b/CNKI.js index 97ef24c..b6b9d0f 100644 --- a/CNKI.js +++ b/CNKI.js @@ -9,7 +9,7 @@ "inRepository": true, "translatorType": 12, "browserSupport": "gcsibv", - "lastUpdated": "2024-09-12 14:41:19" + "lastUpdated": "2024-09-13 11:59:26" } /* @@ -1513,7 +1513,7 @@ function addAttachments(item, doc, url, itemKey) { document: doc }); } - const pdfLink = strChild(doc, 'a[id^="pdfDown"]', 'href'); + const pdfLink = strChild(doc, 'a[id^="pdfDown"], .btn-dlpdf > a', 'href'); Z.debug(`get PDF Link:\n${pdfLink}`); const cajLink = strChild(doc, 'a#cajDown', 'href') || itemKey.downloadlink || strChild(doc, 'a[href*="bar/download"]', 'href'); Z.debug(`get CAJ link:\n${cajLink}`);