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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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];