mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 23:00:48 +08:00
@@ -13,7 +13,7 @@ module.exports = async (ctx) => {
|
|||||||
|
|
||||||
const items = await Promise.all(
|
const items = await Promise.all(
|
||||||
$('.feed_item')
|
$('.feed_item')
|
||||||
.slice(0, 5)
|
.slice(0, 10)
|
||||||
.get()
|
.get()
|
||||||
.map(async (e) => {
|
.map(async (e) => {
|
||||||
const pubDate = date(`${$(e).find('.timestamp').text().trim()}`, 8);
|
const pubDate = date(`${$(e).find('.timestamp').text().trim()}`, 8);
|
||||||
@@ -31,9 +31,9 @@ module.exports = async (ctx) => {
|
|||||||
article('#js_content img').each((index, elem) => {
|
article('#js_content img').each((index, elem) => {
|
||||||
const $elem = article(elem);
|
const $elem = article(elem);
|
||||||
|
|
||||||
const imgSrc = $elem.attr('data-original');
|
const imgSrc = $elem.attr('data-original') || $elem.attr('src');
|
||||||
if (imgSrc) {
|
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);
|
$elem.attr('src', realSrc);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user