Skip to content

Commit

Permalink
fix(route/95mm): Update rootUrl in utils.js (#13831)
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyRL authored Nov 18, 2023
1 parent 95c1798 commit c6f700b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/v2/95mm/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -28,6 +28,7 @@ module.exports = {
return {
title: a.text(),
link: a.attr('href'),
guid: a.attr('href').replace('95mm.vip', '95mm.org'),
};
});

Expand All @@ -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;
Expand Down

0 comments on commit c6f700b

Please sign in to comment.