mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-08 22:19:40 +08:00
@@ -13,7 +13,7 @@ module.exports = async (ctx) => {
|
||||
|
||||
const items = await Promise.all(
|
||||
$('.feed_item')
|
||||
.slice(0, 5)
|
||||
.slice(0, 10)
|
||||
.get()
|
||||
.map(async (e) => {
|
||||
const pubDate = date(`${$(e).find('.timestamp').text().trim()}`, 8);
|
||||
@@ -31,9 +31,9 @@ module.exports = async (ctx) => {
|
||||
article('#js_content img').each((index, elem) => {
|
||||
const $elem = article(elem);
|
||||
|
||||
const imgSrc = $elem.attr('data-original');
|
||||
const imgSrc = $elem.attr('data-original') || $elem.attr('src');
|
||||
if (imgSrc) {
|
||||
const realSrc = imgSrc.replace(/^https:\/\/img.chuansongme.com\//, 'https://mmbiz.qpic.cn/');
|
||||
const realSrc = imgSrc.replace(/^https:\/\/img.chuansongme.com\//, 'https://mmbiz.qpic.cn/').replace(/^http.?\/\/img\d+.store.sogou.com.*url=(.*)$/, '$1');
|
||||
$elem.attr('src', realSrc);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user