diff --git a/lib/routes/acfun/article.ts b/lib/routes/acfun/article.ts index b28cbb68a..fef9499e5 100644 --- a/lib/routes/acfun/article.ts +++ b/lib/routes/acfun/article.ts @@ -11,27 +11,27 @@ const baseUrl = 'https://www.acfun.cn'; const categoryMap = { 184: { title: '二次元画师', - realmId: 'realmId=18' + '&realmId=14' + '&realmId=51', + realmId: 'realmId=18&realmId=14&realmId=51', }, 110: { title: '综合', - realmId: 'realmId=5' + '&realmId=22' + '&realmId=28' + '&realmId=3' + '&realmId=4', + realmId: 'realmId=5&realmId=22&realmId=28&realmId=3&realmId=4', }, 73: { title: '生活情感', - realmId: 'realmId=50' + '&realmId=25' + '&realmId=34' + '&realmId=7' + '&realmId=6' + '&realmId=17' + '&realmId=1' + '&realmId=2' + '&realmId=49', + realmId: 'realmId=50&realmId=25&realmId=34&realmId=7&realmId=6&realmId=17&realmId=1&realmId=2&realmId=49', }, 164: { title: '游戏', - realmId: 'realmId=8' + '&realmId=53' + '&realmId=52' + '&realmId=11' + '&realmId=43' + '&realmId=44' + '&realmId=45' + '&realmId=46' + '&realmId=47', + realmId: 'realmId=8&realmId=53&realmId=52&realmId=11&realmId=43&realmId=44&realmId=45&realmId=46&realmId=47', }, 74: { title: '动漫文化', - realmId: 'realmId=13' + '&realmId=31' + '&realmId=48', + realmId: 'realmId=13&realmId=31&realmId=48', }, 75: { title: '漫画文学', - realmId: 'realmId=15' + '&realmId=23' + '&realmId=16', + realmId: 'realmId=15&realmId=23&realmId=16', }, }; const sortTypeEnum = new Set(['createTime', 'lastCommentTime', 'hotScore']); @@ -106,13 +106,7 @@ async function handler(ctx) { const url = `${baseUrl}/v/list${categoryId}/index.htm`; const response = await got.post( - `${baseUrl}/rest/pc-direct/article/feed` + - '?cursor=first_page' + - '&onlyOriginal=false' + - '&limit=10' + - `&sortType=${sortType}` + - `&timeRange=${sortType === 'hotScore' ? timeRange : 'all'}` + - `&${categoryMap[categoryId].realmId}`, + `${baseUrl}/rest/pc-direct/article/feed?cursor=first_page&onlyOriginal=false&limit=10&sortType=${sortType}&timeRange=${sortType === 'hotScore' ? timeRange : 'all'}&${categoryMap[categoryId].realmId}`, { headers: { referer: url, diff --git a/lib/routes/gov/miit/wjfb.ts b/lib/routes/gov/miit/wjfb.ts index 9d0cadc87..13c53ff14 100644 --- a/lib/routes/gov/miit/wjfb.ts +++ b/lib/routes/gov/miit/wjfb.ts @@ -72,7 +72,7 @@ async function handler(ctx) { item.description = content('#con_con') .html() - .replaceAll(/()/g, '$1' + rootUrl + '$2' + '$3'); + ?.replaceAll(/()/g, '$1' + rootUrl + '$2$3'); return item; }) diff --git a/lib/routes/gov/miit/yjzj.ts b/lib/routes/gov/miit/yjzj.ts index a7ac3584f..b45b3dcd6 100644 --- a/lib/routes/gov/miit/yjzj.ts +++ b/lib/routes/gov/miit/yjzj.ts @@ -71,7 +71,7 @@ async function handler() { item.description = content('#con_con') .html() - .replaceAll(/()/g, '$1' + rootUrl + '$2' + '$3'); + ?.replaceAll(/()/g, '$1' + rootUrl + '$2$3'); return item; }) diff --git a/lib/routes/miniflux/entry.ts b/lib/routes/miniflux/entry.ts index ce6585787..0090796f8 100644 --- a/lib/routes/miniflux/entry.ts +++ b/lib/routes/miniflux/entry.ts @@ -233,13 +233,13 @@ async function handler(ctx) { let agTitle, agInfo; if (feedsNumber > 2) { agTitle = `MiniFlux | Aggregator For ${feedsNumber} Feeds`; - agInfo = 'An aggregator powered by MiniFlux and RSSHub. ' + 'This aggregator truthfully preserves the contents in ' + `${feedsNumber} feeds, including: ` + `
  • ${feedsName.join('
  • ')}`; + agInfo = `An aggregator powered by MiniFlux and RSSHub. This aggregator truthfully preserves the contents in ${feedsNumber} feeds, including:
  • ${feedsName.join('
  • ')}`; } else if (feedsNumber) { agTitle = `MiniFlux | ${feedsName.join(', ')}`; - agInfo = 'A RSS feed powered by MiniFlux and RSSHub ' + 'effortlessly republishes the contents in ' + `"${feedsName.join('" & "')}".`; + agInfo = `A RSS feed powered by MiniFlux and RSSHub effortlessly republishes the contents in "${feedsName.join('" & "')}".`; } else { agTitle = `MiniFlux | Feeds Aggregator`; - agInfo = 'An aggregator powered by MiniFlux and RSSHub ' + 'with empty content. If this is not your intention, ' + `please double-check your setting for parameters.`; + agInfo = 'An aggregator powered by MiniFlux and RSSHub with empty content. If this is not your intention, please double-check your setting for parameters.'; } result = { diff --git a/lib/routes/miniflux/subscription.ts b/lib/routes/miniflux/subscription.ts index cca382345..d6cdb91a3 100644 --- a/lib/routes/miniflux/subscription.ts +++ b/lib/routes/miniflux/subscription.ts @@ -70,7 +70,7 @@ async function handler(ctx) { title: item.title, link: item.site_url, pubData: item.last_modified_header, - description: 'Feed URL: ' + `${item.feed_url}`, + description: `Feed URL: ${item.feed_url}`, }); } diff --git a/lib/routes/twitter/utils.ts b/lib/routes/twitter/utils.ts index fbc6b79e8..48ef1ae39 100644 --- a/lib/routes/twitter/utils.ts +++ b/lib/routes/twitter/utils.ts @@ -151,7 +151,7 @@ const ProcessFeed = (ctx, { data = [] }, params = {}) => { if (widthOfPics <= 0 && heightOfPics <= 0) { content += `width="${media.sizes.large.w}" height="${media.sizes.large.h}" `; } - content += ` style="${style}" ` + `${readable ? 'hspace="4" vspace="8"' : ''} src="${originalImg}">`; + content += ` style="${style}" ${readable ? 'hspace="4" vspace="8"' : ''} src="${originalImg}">`; if (addLinkForPics) { content += ``; } diff --git a/lib/routes/wzu/news.ts b/lib/routes/wzu/news.ts index 27799bc52..2f2ffe7d7 100644 --- a/lib/routes/wzu/news.ts +++ b/lib/routes/wzu/news.ts @@ -72,7 +72,7 @@ async function handler(ctx) { return { title: newsTitle, link: newsLink, - description: '温州大学' + ' - ' + newsTitle, + description: `温州大学 - ${newsTitle}`, item: list.toArray().map(async (item) => { const $ = load(item); const $a1 = $('li>a');