fix(route): elsevier (#12948)

This commit is contained in:
Derek
2023-08-08 17:27:15 +08:00
committed by GitHub
parent 656c8bc08f
commit db0b637da0
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = async (ctx) => {
});
const $ = cheerio.load(response.data);
const jrnlName = $('.anchor.js-title-link').text();
const issueUrl = `${host}${$('.anchor.js-volume').attr('href')}`;
const issueUrl = `${host}${$('.link-anchor.u-clr-black').attr('href')}`;
let issue = '';
if (issueUrl.match('suppl') !== null) {
issue = 'Volume ' + issueUrl.match('vol/(.*)/suppl')[1];