mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-19 09:52:21 +08:00
fix(route/95mm): Update rootUrl in utils.js (#13831)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user