fix(route/95mm): Update rootUrl in utils.js (#13831)
This commit is contained in:
parent
95c179862e
commit
c6f700b4c8
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue