mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-21 12:49:53 +08:00
feat: add badges
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
[](https://hub.docker.com/r/diygod/rsshub)
|
||||
[](https://github.com/DIYgod/RSSHub/actions/workflows/test.yml?query=event%3Apush+branch%3Amaster)
|
||||
[](https://app.codecov.io/gh/DIYgod/RSSHub/branch/master)
|
||||
[](https://www.codefactor.io/repository/github/diygod/rsshub)
|
||||
[](https://deepscan.io/dashboard#view=project&tid=6244&pid=8135&bid=92448)
|
||||
|
||||
## Introduction
|
||||
|
||||
|
||||
@@ -16,6 +16,8 @@ sidebarDepth: 0
|
||||
[](https://hub.docker.com/r/diygod/rsshub)
|
||||
[](https://github.com/DIYgod/RSSHub/actions/workflows/test.yml?query=event%3Apush+branch%3Amaster)
|
||||
[](https://app.codecov.io/gh/DIYgod/RSSHub/branch/master)
|
||||
[](https://www.codefactor.io/repository/github/diygod/rsshub)
|
||||
[](https://deepscan.io/dashboard#view=project\&tid=6244\&pid=8135\&bid=92448)
|
||||
|
||||
RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以给任何奇奇怪怪的内容生成 RSS 订阅源。RSSHub 借助于开源社区的力量快速发展中,目前已适配数百家网站的上千项内容
|
||||
|
||||
|
||||
@@ -16,6 +16,8 @@ sidebarDepth: 0
|
||||
[](https://hub.docker.com/r/diygod/rsshub)
|
||||
[](https://github.com/DIYgod/RSSHub/actions/workflows/test.yml?query=event%3Apush+branch%3Amaster)
|
||||
[](https://app.codecov.io/gh/DIYgod/RSSHub/branch/master)
|
||||
[](https://www.codefactor.io/repository/github/diygod/rsshub)
|
||||
[](https://deepscan.io/dashboard#view=project&tid=6244&pid=8135&bid=92448)
|
||||
|
||||
RSSHub is an open source, easy to use, and extensible RSS feed aggregator, it's capable of generating RSS feeds from pretty much everything.
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ module.exports = async (ctx) => {
|
||||
url: `https://www.bilibili.com/bangumi/media/md${mediaid}`,
|
||||
});
|
||||
mediaData = JSON.parse(response.data.match(/window\.__INITIAL_STATE__=([\s\S]+);\(function\(\)/)[1]) || {};
|
||||
seasonid = mediaData?.mediaInfo.season_id;
|
||||
seasonid = mediaData.mediaInfo.season_id;
|
||||
}
|
||||
const { data } = await got.get(`https://api.bilibili.com/pgc/web/season/section?season_id=${seasonid}`);
|
||||
|
||||
|
||||
@@ -523,7 +523,7 @@ module.exports = async (ctx) => {
|
||||
let mediaTag = '';
|
||||
if (showMediaTagInTitle) {
|
||||
msgTypes.forEach((type) => {
|
||||
if (type !== REPLY || (type === REPLY && showReplyTo) || (type === FORWARDED && showFwdFrom) || (type === VIA_BOT && showViaBot)) {
|
||||
if (type !== REPLY || type !== FORWARDED || type !== VIA_BOT || (type === REPLY && showReplyTo) || (type === FORWARDED && showFwdFrom) || (type === VIA_BOT && showViaBot)) {
|
||||
mediaTag += showMediaTagAsEmoji ? mediaTagDict[type][1] : mediaTagDict[type][0];
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user