Skip to content

Commit

Permalink
兼容学位论文代码手误
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaojiaodubai committed Sep 13, 2024
1 parent ab85ad7 commit b17099a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CNKI.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 12,
"browserSupport": "gcsibv",
"lastUpdated": "2024-09-12 14:41:19"
"lastUpdated": "2024-09-13 11:59:26"
}

/*
Expand Down Expand Up @@ -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}`);
Expand Down

0 comments on commit b17099a

Please sign in to comment.