fix(route/95mm): Update rootUrl in utils.js (#13831)

This commit is contained in:
Tony 2023-11-18 21:43:16 +00:00 committed by GitHub
parent 95c179862e
commit c6f700b4c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@ const cheerio = require('cheerio');
const { art } = require('@/utils/render');
const path = require('path');
const rootUrl = 'https://www.95mm.org';
const rootUrl = 'https://www.95mm.vip';
module.exports = {
rootUrl,
@ -28,6 +28,7 @@ module.exports = {
return {
title: a.text(),
link: a.attr('href'),
guid: a.attr('href').replace('95mm.vip', '95mm.org'),
};
});
@ -42,7 +43,7 @@ module.exports = {
const images = detailResponse.data.match(/src": '(.*?)',"width/g);
item.description = art(path.join(__dirname, 'templates/description.art'), {
images: images.map((i) => i.split("'")[1]),
images: images.map((i) => i.split("'")[1].replaceAll('\\/', '/')),
});
return item;