rsshub 1.0.0-master.dbd6ac7 → 1.0.0-master.dc46f70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -8
- package/lib/api_router.js +1 -1
- package/lib/config.js +17 -4
- package/lib/maintainer.js +1 -1
- package/lib/middleware/cache/memory.js +2 -2
- package/lib/middleware/template.js +14 -1
- package/lib/radar.js +23 -0
- package/lib/router.js +80 -83
- package/lib/routes/axis-studios/work.js +0 -0
- package/lib/routes/blow-studio/work.js +0 -0
- package/lib/routes/blur-studio/index.js +0 -0
- package/lib/routes/digic-pictures/index.js +0 -0
- package/lib/routes/gov/hunan/notice.js +1 -1
- package/lib/routes/method-studios/index.js +0 -0
- package/lib/routes/ps/product.js +0 -0
- package/lib/routes/unit-image/films.js +0 -0
- package/lib/utils/puppeteer.js +2 -2
- package/lib/utils/request-wrapper.js +2 -2
- package/lib/v2/1point3acres/blog.js +67 -0
- package/lib/v2/1point3acres/category.js +17 -0
- package/lib/v2/1point3acres/maintainer.js +9 -0
- package/lib/v2/1point3acres/offer.js +69 -0
- package/lib/v2/1point3acres/radar.js +53 -0
- package/lib/v2/1point3acres/router.js +10 -0
- package/lib/v2/1point3acres/section.js +28 -0
- package/lib/v2/1point3acres/templates/image.art +1 -0
- package/lib/v2/1point3acres/templates/offer.art +11 -0
- package/lib/v2/1point3acres/thread.js +15 -0
- package/lib/v2/1point3acres/utils.js +79 -0
- package/lib/v2/3dmgame/game.js +39 -0
- package/lib/v2/3dmgame/maintainer.js +4 -0
- package/lib/v2/3dmgame/news_center.js +42 -0
- package/lib/v2/3dmgame/radar.js +19 -0
- package/lib/v2/3dmgame/router.js +4 -0
- package/lib/v2/3dmgame/utils.js +30 -0
- package/lib/v2/5eplay/index.js +100 -0
- package/lib/v2/5eplay/maintainer.js +3 -0
- package/lib/v2/5eplay/radar.js +13 -0
- package/lib/v2/5eplay/router.js +3 -0
- package/lib/v2/5eplay/utils.js +35 -0
- package/lib/{routes → v2}/6park/index.js +20 -12
- package/lib/v2/6park/maintainer.js +8 -0
- package/lib/v2/6park/news.js +76 -0
- package/lib/v2/6park/radar.js +65 -0
- package/lib/v2/6park/router.js +4 -0
- package/lib/v2/6v123/utils.js +4 -2
- package/lib/v2/aisixiang/column.js +36 -0
- package/lib/v2/aisixiang/maintainer.js +6 -0
- package/lib/v2/aisixiang/radar.js +29 -0
- package/lib/v2/aisixiang/router.js +6 -0
- package/lib/v2/aisixiang/thinktank.js +49 -0
- package/lib/v2/aisixiang/toplist.js +37 -0
- package/lib/v2/aisixiang/utils.js +37 -0
- package/lib/v2/aliresearch/information.js +57 -0
- package/lib/v2/aliresearch/maintainer.js +3 -0
- package/lib/v2/aliresearch/radar.js +13 -0
- package/lib/v2/aliresearch/router.js +3 -0
- package/lib/v2/amazon/kindle-software-updates.js +1 -0
- package/lib/v2/apache/apisix/blog.js +32 -0
- package/lib/v2/apache/maintainer.js +3 -0
- package/lib/v2/apache/radar.js +13 -0
- package/lib/v2/apache/router.js +3 -0
- package/lib/v2/apiseven/blog.js +46 -0
- package/lib/v2/apiseven/maintainer.js +3 -0
- package/lib/v2/apiseven/radar.js +13 -0
- package/lib/v2/apiseven/router.js +3 -0
- package/lib/v2/aqara/community.js +32 -0
- package/lib/v2/aqara/maintainer.js +4 -0
- package/lib/v2/aqara/news.js +53 -0
- package/lib/v2/aqara/radar.js +21 -0
- package/lib/v2/aqara/router.js +4 -0
- package/lib/v2/arcteryx/maintainer.js +1 -0
- package/lib/v2/arcteryx/new-arrivals.js +4 -15
- package/lib/v2/arcteryx/outlet.js +40 -0
- package/lib/v2/arcteryx/radar.js +8 -0
- package/lib/v2/arcteryx/router.js +1 -0
- package/lib/v2/arcteryx/templates/product-description.art +9 -3
- package/lib/v2/arcteryx/utils.js +23 -0
- package/lib/v2/arknights/radar.js +1 -1
- package/lib/v2/atcoder/radar.js +1 -1
- package/lib/v2/bad/index.js +58 -0
- package/lib/v2/bad/maintainer.js +3 -0
- package/lib/v2/bad/radar.js +13 -0
- package/lib/v2/bad/router.js +3 -0
- package/lib/v2/baozimh/index.js +1 -1
- package/lib/v2/bast/index.js +74 -0
- package/lib/v2/bast/maintainer.js +3 -0
- package/lib/v2/bast/radar.js +13 -0
- package/lib/v2/bast/router.js +3 -0
- package/lib/v2/bgmlist/onair.js +1 -2
- package/lib/v2/bilibili/cache.js +17 -5
- package/lib/v2/bilibili/radar.js +7 -1
- package/lib/v2/bilibili/userChannel.js +2 -1
- package/lib/v2/bilibili/userCollection.js +3 -1
- package/lib/v2/bilibili/utils.js +2 -1
- package/lib/v2/bilibili/video-all.js +7 -2
- package/lib/v2/bilibili/video.js +1 -1
- package/lib/v2/bilibili/vsearch.js +1 -1
- package/lib/{routes/universities → v2}/bit/cs/cs.js +4 -6
- package/lib/v2/bit/cs/utils.js +53 -0
- package/lib/{routes/universities → v2}/bit/jwc/jwc.js +4 -6
- package/lib/v2/bit/jwc/utils.js +49 -0
- package/lib/v2/bit/maintainer.js +3 -0
- package/lib/v2/bit/radar.js +25 -1
- package/lib/v2/bit/router.js +3 -0
- package/lib/v2/bit/yjs.js +27 -0
- package/lib/v2/bjsk/keti.js +54 -0
- package/lib/v2/bjsk/maintainer.js +1 -0
- package/lib/v2/bjsk/radar.js +8 -0
- package/lib/v2/bjsk/router.js +1 -0
- package/lib/v2/bmkg/earthquake.js +29 -0
- package/lib/v2/bmkg/maintainer.js +4 -0
- package/lib/v2/bmkg/news.js +42 -0
- package/lib/v2/bmkg/radar.js +19 -0
- package/lib/v2/bmkg/router.js +4 -0
- package/lib/{routes/rss3/blog.js → v2/camchina/index.js} +19 -13
- package/lib/v2/camchina/maintainer.js +3 -0
- package/lib/v2/camchina/radar.js +13 -0
- package/lib/v2/camchina/router.js +3 -0
- package/lib/{routes/universities/zkyyjs/zkyyjs.js → v2/cas/ia/yjs.js} +10 -8
- package/lib/v2/cas/maintainer.js +1 -0
- package/lib/v2/cas/radar.js +9 -1
- package/lib/v2/cas/router.js +1 -0
- package/lib/v2/cau/ele.js +42 -0
- package/lib/v2/cau/maintainer.js +4 -0
- package/lib/v2/cau/radar.js +21 -0
- package/lib/v2/cau/router.js +4 -0
- package/lib/v2/cau/yjs.js +42 -0
- package/lib/v2/ccnu/career.js +31 -0
- package/lib/v2/ccnu/cs.js +28 -0
- package/lib/v2/ccnu/maintainer.js +6 -0
- package/lib/v2/ccnu/radar.js +40 -0
- package/lib/v2/ccnu/router.js +6 -0
- package/lib/v2/ccnu/wu.js +27 -0
- package/lib/v2/ccnu/yjs.js +27 -0
- package/lib/v2/cebbank/all.js +5 -2
- package/lib/v2/cebbank/history.js +1 -0
- package/lib/v2/cebbank/radar.js +6 -6
- package/lib/v2/chinathinktanks/radar.js +1 -1
- package/lib/v2/cloudnative/blog.js +34 -0
- package/lib/v2/cloudnative/maintainer.js +3 -0
- package/lib/v2/cloudnative/radar.js +13 -0
- package/lib/v2/cloudnative/router.js +3 -0
- package/lib/v2/cls/depth.js +34 -32
- package/lib/v2/cls/hot.js +38 -29
- package/lib/v2/cls/maintainer.js +1 -1
- package/lib/v2/cls/radar.js +1 -1
- package/lib/v2/cls/telegraph.js +25 -23
- package/lib/v2/cls/templates/depth.art +3 -3
- package/lib/v2/cls/templates/telegraph.art +5 -5
- package/lib/v2/cls/utils.js +12 -6
- package/lib/v2/cneb/maintainer.js +4 -0
- package/lib/v2/cneb/radar.js +19 -0
- package/lib/v2/cneb/router.js +5 -0
- package/lib/v2/cneb/yjxw.js +72 -0
- package/lib/v2/cneb/yjxx.js +50 -0
- package/lib/v2/cnki/author.js +38 -26
- package/lib/v2/cnki/maintainer.js +1 -1
- package/lib/v2/comicat/maintainer.js +3 -0
- package/lib/v2/comicat/radar.js +11 -0
- package/lib/v2/comicat/router.js +3 -0
- package/lib/v2/comicat/search.js +42 -0
- package/lib/v2/cqgas/maintainer.js +3 -0
- package/lib/v2/cqgas/radar.js +13 -0
- package/lib/v2/cqgas/router.js +3 -0
- package/lib/v2/cqgas/tqtz.js +36 -0
- package/lib/v2/cssn/iolaw.js +38 -0
- package/lib/v2/cssn/maintainer.js +3 -0
- package/lib/v2/cssn/radar.js +11 -0
- package/lib/v2/cssn/router.js +3 -0
- package/lib/v2/cste/index.js +56 -0
- package/lib/v2/cste/maintainer.js +3 -0
- package/lib/v2/cste/radar.js +13 -0
- package/lib/v2/cste/router.js +3 -0
- package/lib/v2/cuc/radar.js +2 -2
- package/lib/v2/cuc/yz.js +16 -20
- package/lib/v2/dahecube/radar.js +3 -2
- package/lib/v2/deadline/maintainer.js +4 -0
- package/lib/v2/deadline/posts.js +53 -0
- package/lib/v2/deadline/radar.js +13 -0
- package/lib/v2/deadline/router.js +3 -0
- package/lib/v2/deadline/templates/desc.art +10 -0
- package/lib/v2/devolverdigital/blog.js +50 -0
- package/lib/v2/devolverdigital/maintainer.js +3 -0
- package/lib/v2/devolverdigital/radar.js +13 -0
- package/lib/v2/devolverdigital/router.js +3 -0
- package/lib/v2/discord/channel.js +8 -8
- package/lib/v2/discord/maintainer.js +1 -1
- package/lib/v2/discord/radar.js +2 -2
- package/lib/v2/discord/router.js +1 -1
- package/lib/v2/dlsite/ci-en/article.js +64 -0
- package/lib/v2/dlsite/index.js +5 -0
- package/lib/v2/dlsite/maintainer.js +2 -0
- package/lib/v2/dlsite/radar.js +14 -0
- package/lib/v2/dlsite/router.js +2 -0
- package/lib/v2/dlsite/templates/description.art +158 -0
- package/lib/v2/dlsite/utils.js +176 -0
- package/lib/v2/domp4/detail.js +1 -3
- package/lib/v2/domp4/latest.js +3 -2
- package/lib/v2/domp4/utils.js +3 -0
- package/lib/v2/duozhuayu/maintainer.js +3 -0
- package/lib/v2/duozhuayu/radar.js +13 -0
- package/lib/v2/duozhuayu/router.js +3 -0
- package/lib/{routes → v2}/duozhuayu/search.js +23 -32
- package/lib/v2/duozhuayu/templates/book.art +10 -0
- package/lib/v2/dxy/maintainer.js +4 -0
- package/lib/v2/dxy/profile/thread.js +82 -0
- package/lib/v2/dxy/radar.js +21 -0
- package/lib/v2/dxy/router.js +4 -0
- package/lib/v2/dxy/special.js +79 -0
- package/lib/v2/dxy/utils.js +72 -0
- package/lib/v2/eastmoney/maintainer.js +1 -0
- package/lib/v2/eastmoney/radar.js +8 -0
- package/lib/v2/eastmoney/router.js +1 -0
- package/lib/v2/eastmoney/search/index.js +55 -0
- package/lib/v2/ecust/e/news.js +44 -0
- package/lib/v2/ecust/gschool/yjs.js +27 -0
- package/lib/v2/ecust/maintainer.js +4 -0
- package/lib/v2/ecust/radar.js +21 -0
- package/lib/v2/ecust/router.js +4 -0
- package/lib/v2/embassy/radar.js +1 -1
- package/lib/v2/embassy/supportedList.js +4 -4
- package/lib/v2/firecore/index.js +37 -0
- package/lib/v2/firecore/maintainer.js +3 -0
- package/lib/v2/firecore/radar.js +13 -0
- package/lib/v2/firecore/router.js +3 -0
- package/lib/v2/flyert/creditcard.js +3 -0
- package/lib/v2/flyert/utils.js +14 -8
- package/lib/v2/followin/index.js +35 -0
- package/lib/v2/followin/kol.js +25 -0
- package/lib/v2/followin/maintainer.js +7 -0
- package/lib/v2/followin/news.js +21 -0
- package/lib/v2/followin/radar.js +37 -0
- package/lib/v2/followin/router.js +7 -0
- package/lib/v2/followin/tag.js +44 -0
- package/lib/v2/followin/templates/thread.art +15 -0
- package/lib/v2/followin/topic.js +25 -0
- package/lib/v2/followin/utils.js +84 -0
- package/lib/v2/fortnite/maintainer.js +3 -0
- package/lib/v2/fortnite/news.js +58 -0
- package/lib/v2/fortnite/radar.js +16 -0
- package/lib/v2/fortnite/router.js +3 -0
- package/lib/v2/freebuf/index.js +41 -0
- package/lib/v2/freebuf/maintainer.js +3 -0
- package/lib/v2/freebuf/radar.js +13 -0
- package/lib/v2/freebuf/router.js +3 -0
- package/lib/v2/freecomputerbooks/index.js +94 -0
- package/lib/v2/freecomputerbooks/maintainer.js +4 -0
- package/lib/v2/freecomputerbooks/radar.js +31 -0
- package/lib/v2/freecomputerbooks/router.js +3 -0
- package/lib/v2/freecomputerbooks/templates/desc.art +3 -0
- package/lib/v2/futunn/main.js +67 -0
- package/lib/v2/futunn/maintainer.js +3 -0
- package/lib/v2/futunn/radar.js +13 -0
- package/lib/v2/futunn/router.js +5 -0
- package/lib/v2/futunn/templates/description.art +6 -0
- package/lib/v2/fzmtr/announcements.js +38 -0
- package/lib/v2/fzmtr/maintainer.js +3 -0
- package/lib/v2/fzmtr/radar.js +11 -0
- package/lib/v2/fzmtr/router.js +3 -0
- package/lib/v2/github/gist.js +35 -0
- package/lib/v2/github/maintainer.js +2 -1
- package/lib/v2/github/radar.js +8 -0
- package/lib/v2/github/router.js +1 -0
- package/lib/v2/github/trending.js +8 -10
- package/lib/v2/gov/cac/index.js +64 -0
- package/lib/v2/gov/ccdi/index.js +1 -1
- package/lib/v2/gov/ccdi/utils.js +1 -1
- package/lib/v2/gov/chongqing/rsks.js +38 -0
- package/lib/v2/gov/maintainer.js +5 -2
- package/lib/v2/gov/radar.js +37 -4
- package/lib/v2/gov/router.js +4 -1
- package/lib/v2/gov/sichuan/deyang/govpublicinfo.js +92 -0
- package/lib/v2/gov/sichuan/deyang/mztoday.js +134 -0
- package/lib/v2/gov/sichuan/deyang/templates/govPublicInfo.art +42 -37
- package/lib/v2/gov/sichuan/deyang/templates/mztoday.art +6 -0
- package/lib/v2/gov/stats/index.js +101 -8
- package/lib/v2/gov/stats/templates/description.art +12 -0
- package/lib/v2/gq/tw/index.js +1 -1
- package/lib/v2/guangzhoumetro/maintainer.js +3 -0
- package/lib/v2/guangzhoumetro/news.js +37 -0
- package/lib/v2/guangzhoumetro/radar.js +11 -0
- package/lib/v2/gxmzu/ai.js +18 -0
- package/lib/v2/gxmzu/maintainer.js +4 -0
- package/lib/v2/gxmzu/radar.js +21 -0
- package/lib/v2/gxmzu/router.js +4 -0
- package/lib/v2/gxmzu/utils/index.js +55 -0
- package/lib/v2/gxmzu/yjs.js +18 -0
- package/lib/v2/gz-cmc/index.js +137 -0
- package/lib/v2/gz-cmc/maintainer.js +3 -0
- package/lib/v2/gz-cmc/radar.js +12 -0
- package/lib/v2/gz-cmc/router.js +3 -0
- package/lib/v2/gz-cmc/templates/description.art +3 -0
- package/lib/v2/gzdaily/maintainer.js +0 -1
- package/lib/v2/gzdaily/radar.js +0 -10
- package/lib/v2/gzdaily/router.js +0 -1
- package/lib/v2/gzhu/maintainer.js +3 -0
- package/lib/v2/gzhu/radar.js +13 -0
- package/lib/v2/gzhu/router.js +3 -0
- package/lib/v2/gzhu/yjs.js +31 -0
- package/lib/v2/hackertalk/radar.js +1 -1
- package/lib/v2/hk01/channel.js +2 -2
- package/lib/v2/hk01/latest.js +20 -0
- package/lib/v2/hk01/maintainer.js +1 -0
- package/lib/v2/hk01/radar.js +11 -5
- package/lib/v2/hk01/router.js +1 -0
- package/lib/v2/hnu/careers.js +33 -0
- package/lib/v2/hnu/maintainer.js +3 -0
- package/lib/v2/hnu/radar.js +12 -0
- package/lib/v2/hnu/router.js +3 -0
- package/lib/v2/hust/aia/news.js +26 -0
- package/lib/v2/hust/aia/notice.js +29 -0
- package/lib/v2/hust/maintainer.js +7 -0
- package/lib/v2/hust/radar.js +27 -0
- package/lib/v2/hust/router.js +7 -0
- package/lib/v2/hust/yjs.js +27 -0
- package/lib/v2/i-cable/category.js +74 -0
- package/lib/v2/i-cable/maintainer.js +3 -0
- package/lib/v2/i-cable/radar.js +13 -0
- package/lib/v2/i-cable/router.js +3 -0
- package/lib/v2/i-cable/templates/desc.art +8 -0
- package/lib/v2/ibc/maintainer.js +4 -0
- package/lib/{routes/maitta/index.js → v2/ibc/maitta.js} +11 -8
- package/lib/v2/ibc/radar.js +19 -0
- package/lib/v2/ibc/radio.js +73 -0
- package/lib/v2/ibc/router.js +4 -0
- package/lib/v2/ibc/templates/description.art +6 -0
- package/lib/v2/ieee/earlyaccess.js +77 -0
- package/lib/v2/ieee/maintainer.js +1 -0
- package/lib/v2/ieee/radar.js +6 -0
- package/lib/v2/ieee/router.js +2 -1
- package/lib/v2/inoreader/rss.js +32 -7
- package/lib/v2/instructables/projects.js +1 -0
- package/lib/{routes/3k8 → v2/iqnew}/latest.js +19 -12
- package/lib/v2/iqnew/maintainer.js +3 -0
- package/lib/v2/iqnew/radar.js +13 -0
- package/lib/v2/iqnew/router.js +3 -0
- package/lib/v2/iresearch/radar.js +2 -2
- package/lib/v2/ithome/radar.js +3 -3
- package/lib/v2/iwara/radar.js +1 -1
- package/lib/v2/iwara/subscriptions.js +131 -32
- package/lib/v2/iwara/templates/subscriptions.art +1 -1
- package/lib/v2/kunchengblog/essay.js +50 -0
- package/lib/v2/kunchengblog/maintainer.js +3 -0
- package/lib/v2/kunchengblog/radar.js +13 -0
- package/lib/v2/kunchengblog/router.js +3 -0
- package/lib/v2/layer3/maintainer.js +3 -0
- package/lib/v2/layer3/quests.js +37 -0
- package/lib/v2/layer3/radar.js +13 -0
- package/lib/v2/layer3/router.js +3 -0
- package/lib/v2/layer3/templates/description.art +24 -0
- package/lib/v2/line/publisher.js +1 -1
- package/lib/v2/macmenubar/maintainer.js +3 -0
- package/lib/v2/macmenubar/radar.js +13 -0
- package/lib/v2/macmenubar/recently.js +47 -0
- package/lib/v2/macmenubar/router.js +3 -0
- package/lib/v2/mdpi/maintainer.js +0 -0
- package/lib/v2/mdpi/radar.js +0 -0
- package/lib/v2/mdpi/router.js +0 -0
- package/lib/v2/mdpi/templates/description.art +0 -0
- package/lib/v2/medium/following.js +31 -0
- package/lib/v2/medium/for-you.js +31 -0
- package/lib/v2/medium/graphql.js +190 -0
- package/lib/v2/medium/list.js +32 -0
- package/lib/v2/medium/maintainer.js +6 -0
- package/lib/v2/medium/parse-article.js +60 -0
- package/lib/v2/medium/radar.js +23 -0
- package/lib/v2/medium/router.js +6 -0
- package/lib/v2/medium/tag.js +32 -0
- package/lib/v2/mihoyo/maintainer.js +1 -0
- package/lib/v2/mihoyo/radar.js +16 -0
- package/lib/v2/mihoyo/router.js +1 -0
- package/lib/v2/mihoyo/sr/news.js +71 -0
- package/lib/v2/mihoyo/templates/ys.art +4 -0
- package/lib/v2/mihoyo/ys/news.js +132 -52
- package/lib/v2/nature/radar.js +1 -1
- package/lib/{routes → v2}/newrank/douyin.js +4 -1
- package/lib/v2/newrank/maintainer.js +4 -0
- package/lib/v2/newrank/radar.js +15 -0
- package/lib/v2/newrank/router.js +4 -0
- package/lib/v2/newrank/wechat.js +65 -0
- package/lib/v2/newzmz/index.js +55 -44
- package/lib/v2/newzmz/maintainer.js +1 -1
- package/lib/v2/newzmz/radar.js +1 -1
- package/lib/v2/newzmz/router.js +2 -1
- package/lib/v2/newzmz/templates/description.art +7 -0
- package/lib/v2/newzmz/view.js +32 -17
- package/lib/v2/nhentai/util.js +2 -1
- package/lib/v2/nikkei/cn/index.js +2 -2
- package/lib/v2/njglyy/maintainer.js +3 -0
- package/lib/v2/njglyy/radar.js +13 -0
- package/lib/v2/njglyy/router.js +3 -0
- package/lib/v2/njglyy/utils/index.js +50 -0
- package/lib/v2/njglyy/ygbjypx.js +18 -0
- package/lib/v2/nju/zcc.js +7 -13
- package/lib/v2/njucm/grabs.js +18 -0
- package/lib/v2/njucm/maintainer.js +3 -0
- package/lib/v2/njucm/radar.js +13 -0
- package/lib/v2/njucm/router.js +3 -0
- package/lib/v2/njucm/utils/index.js +47 -0
- package/lib/v2/njxzc/radar.js +2 -2
- package/lib/v2/njxzc/utils/index.js +1 -1
- package/lib/v2/notefolio/maintainer.js +3 -0
- package/lib/v2/notefolio/radar.js +13 -0
- package/lib/v2/notefolio/router.js +3 -0
- package/lib/v2/notefolio/search.js +145 -0
- package/lib/v2/notefolio/templates/search.art +9 -0
- package/lib/v2/notion/database.js +161 -0
- package/lib/v2/notion/maintainer.js +3 -0
- package/lib/v2/notion/radar.js +13 -0
- package/lib/v2/notion/router.js +3 -0
- package/lib/v2/nytimes/author.js +1 -1
- package/lib/v2/oeeee/app/channel.js +36 -0
- package/lib/v2/oeeee/app/reporter.js +30 -0
- package/lib/v2/oeeee/maintainer.js +5 -0
- package/lib/v2/oeeee/radar.js +12 -0
- package/lib/v2/oeeee/router.js +5 -0
- package/lib/v2/oeeee/templates/description.art +7 -0
- package/lib/v2/oeeee/utils.js +41 -0
- package/lib/v2/oeeee/web.js +36 -0
- package/lib/v2/openai/blog.js +3 -56
- package/lib/v2/openai/common.js +72 -0
- package/lib/v2/openai/maintainer.js +1 -0
- package/lib/v2/openai/radar.js +8 -0
- package/lib/v2/openai/research.js +32 -0
- package/lib/v2/openai/router.js +1 -0
- package/lib/v2/oshwhub/explore.js +1 -1
- package/lib/v2/ouc/it-postgraduate.js +27 -0
- package/lib/v2/ouc/it.js +43 -0
- package/lib/v2/ouc/maintainer.js +5 -0
- package/lib/v2/ouc/radar.js +27 -0
- package/lib/v2/ouc/router.js +5 -0
- package/lib/v2/ouc/yjs.js +27 -0
- package/lib/v2/pingwest/maintainer.js +5 -0
- package/lib/v2/pingwest/radar.js +25 -0
- package/lib/v2/pingwest/router.js +5 -0
- package/lib/{routes → v2}/pingwest/status.js +12 -5
- package/lib/{routes → v2}/pingwest/tag.js +13 -20
- package/lib/{routes → v2}/pingwest/user.js +8 -4
- package/lib/v2/pingwest/utils.js +92 -0
- package/lib/v2/pumc/maintainer.js +3 -0
- package/lib/v2/pumc/mdadmission.js +62 -0
- package/lib/v2/pumc/radar.js +13 -0
- package/lib/v2/pumc/router.js +3 -0
- package/lib/v2/qdu/jwc.js +58 -0
- package/lib/v2/qdu/maintainer.js +3 -0
- package/lib/v2/qdu/radar.js +13 -0
- package/lib/v2/qdu/router.js +3 -0
- package/lib/v2/readhub/index.js +1 -1
- package/lib/{routes → v2}/right/forum.js +21 -23
- package/lib/v2/right/maintainer.js +3 -0
- package/lib/v2/right/radar.js +13 -0
- package/lib/v2/right/router.js +3 -0
- package/lib/v2/rsshub/radar.js +2 -2
- package/lib/v2/sass/gs/index.js +55 -0
- package/lib/v2/sass/maintainer.js +3 -0
- package/lib/v2/sass/radar.js +13 -0
- package/lib/v2/sass/router.js +3 -0
- package/lib/v2/scau/maintainer.js +3 -0
- package/lib/v2/scau/radar.js +13 -0
- package/lib/v2/scau/router.js +3 -0
- package/lib/v2/scau/yjs.js +27 -0
- package/lib/v2/scnu/cs/match.js +36 -0
- package/lib/v2/scnu/jw.js +33 -0
- package/lib/v2/scnu/library.js +33 -0
- package/lib/v2/scnu/maintainer.js +10 -0
- package/lib/v2/scnu/physics_school_announcements_and_news.js +94 -0
- package/lib/v2/scnu/radar.js +65 -0
- package/lib/v2/scnu/router.js +10 -0
- package/lib/v2/scnu/ss.js +28 -0
- package/lib/{routes/universities/scnu/scnuyjs.js → v2/scnu/yjs.js} +9 -8
- package/lib/v2/scut/maintainer.js +8 -0
- package/lib/v2/scut/radar.js +33 -0
- package/lib/v2/scut/router.js +8 -0
- package/lib/v2/scut/scet/notice.js +31 -0
- package/lib/{routes/universities → v2}/scut/seie/news_center.js +12 -17
- package/lib/v2/scut/yjs.js +30 -0
- package/lib/v2/sdust/maintainer.js +3 -0
- package/lib/v2/sdust/radar.js +13 -0
- package/lib/v2/sdust/router.js +3 -0
- package/lib/v2/sdust/yjsy/zhaosheng.js +52 -0
- package/lib/v2/setn/index.js +100 -0
- package/lib/v2/setn/maintainer.js +3 -0
- package/lib/v2/setn/radar.js +53 -0
- package/lib/v2/setn/router.js +3 -0
- package/lib/v2/sina/chuangshiji.js +17 -0
- package/lib/v2/sina/discovery.js +32 -0
- package/lib/v2/sina/finance/china.js +25 -0
- package/lib/v2/sina/finance/stock/usstock.js +37 -0
- package/lib/v2/sina/maintainer.js +8 -0
- package/lib/v2/sina/radar.js +49 -0
- package/lib/v2/sina/rollnews.js +31 -0
- package/lib/v2/sina/router.js +8 -0
- package/lib/v2/sina/sports.js +43 -0
- package/lib/v2/sina/templates/slide.art +3 -0
- package/lib/v2/sina/templates/video.art +5 -0
- package/lib/v2/sina/utils.js +104 -0
- package/lib/v2/sony/downloads.js +1 -0
- package/lib/v2/southcn/maintainer.js +4 -0
- package/lib/v2/southcn/nfapp/column.js +45 -0
- package/lib/v2/southcn/nfapp/reporter.js +33 -0
- package/lib/v2/southcn/nfapp/utils.js +23 -0
- package/lib/v2/southcn/radar.js +12 -0
- package/lib/v2/southcn/router.js +4 -0
- package/lib/v2/southcn/templates/description.art +6 -0
- package/lib/v2/springer/maintainer.js +0 -0
- package/lib/v2/springer/radar.js +0 -0
- package/lib/v2/springer/router.js +0 -0
- package/lib/v2/springer/templates/description.art +0 -0
- package/lib/v2/sspai/radar.js +1 -1
- package/lib/v2/stbu/jsjxy.js +51 -0
- package/lib/v2/stbu/maintainer.js +4 -0
- package/lib/v2/stbu/radar.js +21 -0
- package/lib/v2/stbu/router.js +4 -0
- package/lib/v2/stbu/xyxw.js +52 -0
- package/lib/v2/stdaily/digitalpaper.js +125 -0
- package/lib/v2/stdaily/maintainer.js +3 -0
- package/lib/v2/stdaily/radar.js +11 -0
- package/lib/v2/stdaily/router.js +3 -0
- package/lib/v2/stdaily/templates/description.art +16 -0
- package/lib/v2/storyfm/episodes.js +63 -0
- package/lib/v2/storyfm/maintainer.js +4 -0
- package/lib/v2/storyfm/radar.js +19 -0
- package/lib/v2/storyfm/router.js +4 -0
- package/lib/v2/storyfm/templates/description.art +6 -0
- package/lib/v2/studygolang/go.js +5 -0
- package/lib/v2/studygolang/jobs.js +3 -33
- package/lib/v2/studygolang/maintainer.js +3 -1
- package/lib/v2/studygolang/radar.js +14 -2
- package/lib/v2/studygolang/router.js +2 -0
- package/lib/v2/studygolang/utils.js +74 -0
- package/lib/v2/studygolang/weekly.js +7 -0
- package/lib/v2/sustech/bidding.js +34 -0
- package/lib/v2/sustech/maintainer.js +5 -0
- package/lib/v2/sustech/newshub-zh.js +39 -0
- package/lib/v2/sustech/radar.js +29 -0
- package/lib/v2/sustech/router.js +5 -0
- package/lib/v2/sustech/yjs.js +29 -0
- package/lib/v2/sysu/maintainer.js +1 -0
- package/lib/v2/sysu/radar.js +8 -0
- package/lib/v2/sysu/router.js +1 -0
- package/lib/v2/sysu/ygafz.js +69 -0
- package/lib/v2/szu/maintainer.js +3 -0
- package/lib/v2/szu/radar.js +19 -0
- package/lib/v2/szu/router.js +3 -0
- package/lib/{routes/universities → v2}/szu/yz/index.js +4 -4
- package/lib/{routes/universities → v2}/szu/yz/utils.js +24 -28
- package/lib/v2/techpowerup/index.js +69 -0
- package/lib/v2/techpowerup/maintainer.js +5 -0
- package/lib/v2/techpowerup/radar.js +19 -0
- package/lib/v2/techpowerup/review.js +69 -0
- package/lib/v2/techpowerup/router.js +4 -0
- package/lib/v2/techpowerup/utils.js +84 -0
- package/lib/v2/telecompaper/maintainer.js +4 -0
- package/lib/{routes → v2}/telecompaper/news.js +1 -0
- package/lib/v2/telecompaper/radar.js +15 -0
- package/lib/v2/telecompaper/router.js +4 -0
- package/lib/v2/tencent/radar.js +1 -1
- package/lib/v2/themoviedb/api-key.js +23 -0
- package/lib/v2/themoviedb/collection.js +21 -0
- package/lib/v2/themoviedb/episodes.js +27 -0
- package/lib/v2/themoviedb/maintainer.js +7 -0
- package/lib/v2/themoviedb/radar.js +73 -0
- package/lib/v2/themoviedb/router.js +7 -0
- package/lib/v2/themoviedb/seasons.js +31 -0
- package/lib/v2/themoviedb/sheet.js +45 -0
- package/lib/v2/themoviedb/templates/description.art +6 -0
- package/lib/v2/themoviedb/trending.js +24 -0
- package/lib/v2/themoviedb/utils.js +34 -0
- package/lib/v2/tiktok/user.js +5 -5
- package/lib/v2/tingshuitz/maintainer.js +1 -0
- package/lib/v2/tingshuitz/radar.js +11 -0
- package/lib/v2/tingshuitz/router.js +1 -0
- package/lib/v2/tingshuitz/shenzhen.js +29 -0
- package/lib/v2/tingshuitz/templates/shenzhen.art +8 -0
- package/lib/v2/tingtingfm/maintainer.js +3 -0
- package/lib/v2/tingtingfm/program.js +104 -0
- package/lib/v2/tingtingfm/radar.js +13 -0
- package/lib/v2/tingtingfm/router.js +3 -0
- package/lib/v2/tingtingfm/templates/audio.art +5 -0
- package/lib/v2/tingtingfm/utils.js +32 -0
- package/lib/v2/tongji/maintainer.js +4 -0
- package/lib/v2/tongji/radar.js +21 -0
- package/lib/v2/tongji/router.js +4 -0
- package/lib/v2/tongji/sse/_article.js +25 -0
- package/lib/v2/tongji/sse/notice.js +46 -0
- package/lib/v2/tongji/yjs.js +27 -0
- package/lib/v2/twitter/maintainer.js +1 -0
- package/lib/v2/twitter/radar.js +10 -0
- package/lib/v2/twitter/router.js +1 -0
- package/lib/v2/twitter/tweet.js +5 -0
- package/lib/v2/twitter/web-api/tweet.js +25 -0
- package/lib/v2/twitter/web-api/twitter-api.js +41 -2
- package/lib/v2/ucas/ai.js +28 -0
- package/lib/v2/ucas/maintainer.js +1 -0
- package/lib/v2/ucas/radar.js +8 -0
- package/lib/v2/ucas/router.js +1 -0
- package/lib/v2/upc/jsj.js +77 -0
- package/lib/v2/upc/main.js +72 -0
- package/lib/v2/upc/maintainer.js +5 -0
- package/lib/v2/upc/radar.js +53 -0
- package/lib/v2/upc/router.js +5 -0
- package/lib/v2/upc/yjs.js +28 -0
- package/lib/v2/ustb/maintainer.js +2 -22
- package/lib/v2/ustb/radar.js +8 -0
- package/lib/v2/ustb/router.js +1 -0
- package/lib/{routes/universities → v2}/ustb/tj/news.js +11 -12
- package/lib/v2/v1tx/index.js +41 -22
- package/lib/v2/wanqu/news.js +3 -2
- package/lib/v2/wechat/feeddd.js +12 -3
- package/lib/v2/wechat/maintainer.js +1 -0
- package/lib/v2/wechat/mp.js +0 -0
- package/lib/v2/wechat/radar.js +19 -2
- package/lib/v2/wechat/router.js +1 -0
- package/lib/v2/wechat/sogou.js +58 -0
- package/lib/v2/weibo/group.js +93 -0
- package/lib/v2/weibo/keyword.js +1 -10
- package/lib/v2/weibo/maintainer.js +4 -3
- package/lib/v2/weibo/router.js +1 -0
- package/lib/v2/weibo/super_index.js +1 -10
- package/lib/v2/weibo/timeline.js +5 -5
- package/lib/v2/weibo/user.js +2 -8
- package/lib/v2/weibo/utils.js +15 -3
- package/lib/v2/wnacg/index.js +1 -1
- package/lib/v2/wnacg/templates/manga.art +4 -4
- package/lib/v2/xiaohongshu/maintainer.js +1 -1
- package/lib/v2/xiaohongshu/notes.js +16 -0
- package/lib/v2/xiaohongshu/router.js +1 -0
- package/lib/v2/xiaohongshu/util.js +126 -1
- package/lib/v2/xkb/index.js +3 -3
- package/lib/v2/xueqiu/user.js +35 -14
- package/lib/v2/xyzrank/radar.js +7 -7
- package/lib/v2/yomiuri/maintainer.js +1 -1
- package/lib/v2/yomiuri/news.js +50 -100
- package/lib/v2/yomiuri/radar.js +3 -3
- package/lib/v2/youtube/user.js +1 -1
- package/lib/v2/zcool/radar.js +6 -6
- package/lib/v2/zhihu/answers.js +13 -9
- package/lib/v2/zhihu/radar.js +2 -2
- package/lib/v2/zju/radar.js +1 -1
- package/lib/v2/zyw/hot.js +63 -0
- package/lib/v2/zyw/maintainer.js +3 -0
- package/lib/v2/zyw/radar.js +16 -0
- package/lib/v2/zyw/router.js +3 -0
- package/package.json +121 -130
- package/lib/routes/1point3acres/blog.js +0 -52
- package/lib/routes/1point3acres/offer.js +0 -211
- package/lib/routes/1point3acres/post.js +0 -50
- package/lib/routes/3dm/game.js +0 -42
- package/lib/routes/3dm/news_center.js +0 -54
- package/lib/routes/aisixiang/column.js +0 -37
- package/lib/routes/aisixiang/ranking.js +0 -37
- package/lib/routes/aisixiang/thinktank.js +0 -40
- package/lib/routes/aisixiang/utils.js +0 -39
- package/lib/routes/cneb/guoneinews.js +0 -27
- package/lib/routes/cneb/yjxx.js +0 -36
- package/lib/routes/futunn/highlights.js +0 -58
- package/lib/routes/go-weekly/index.js +0 -29
- package/lib/routes/icable/category.js +0 -64
- package/lib/routes/newrank/wechat.js +0 -37
- package/lib/routes/notefolio/index.js +0 -67
- package/lib/routes/pingwest/utils.js +0 -76
- package/lib/routes/sina/chuangshiji.js +0 -38
- package/lib/routes/sina/discovery.js +0 -52
- package/lib/routes/sina/finance.js +0 -37
- package/lib/routes/sina/rollnews.js +0 -41
- package/lib/routes/sina/sports.js +0 -54
- package/lib/routes/universities/bit/bityjs.js +0 -23
- package/lib/routes/universities/bit/cs/utils.js +0 -73
- package/lib/routes/universities/bit/jwc/utils.js +0 -65
- package/lib/routes/universities/cauele/cauele.js +0 -24
- package/lib/routes/universities/cauyjs/cauyjs.js +0 -24
- package/lib/routes/universities/ccnu/career.js +0 -43
- package/lib/routes/universities/ccnu/ccnucs.js +0 -23
- package/lib/routes/universities/ccnu/ccnuwu.js +0 -23
- package/lib/routes/universities/ccnu/ccnuyjs.js +0 -23
- package/lib/routes/universities/cucyjs/cucyjs.js +0 -23
- package/lib/routes/universities/ecustyjs/ecustyjs.js +0 -23
- package/lib/routes/universities/gzyjs/gzyjs.js +0 -24
- package/lib/routes/universities/hust/aia/news.js +0 -32
- package/lib/routes/universities/hust/aia/notice.js +0 -35
- package/lib/routes/universities/hustyjs/hustyjs.js +0 -23
- package/lib/routes/universities/ouc/it.js +0 -52
- package/lib/routes/universities/outele/outele.js +0 -23
- package/lib/routes/universities/outyjs/outyjs.js +0 -23
- package/lib/routes/universities/scauyjs/scauyjs.js +0 -23
- package/lib/routes/universities/scnu/cs/match.js +0 -35
- package/lib/routes/universities/scnu/jw.js +0 -32
- package/lib/routes/universities/scnu/library.js +0 -32
- package/lib/routes/universities/scnu/scnucs.js +0 -23
- package/lib/routes/universities/scut/scet/notice.js +0 -32
- package/lib/routes/universities/scut/scutyjs.js +0 -28
- package/lib/routes/universities/sustech/bidding.js +0 -34
- package/lib/routes/universities/sustech/newshub-zh.js +0 -35
- package/lib/routes/universities/sustyjs/sustyjs.js +0 -24
- package/lib/routes/universities/szuyjs/szuyjs.js +0 -24
- package/lib/routes/universities/tju/sse/_article.js +0 -34
- package/lib/routes/universities/tju/sse/notice.js +0 -41
- package/lib/routes/universities/tjuyjs/tjuyjs.js +0 -23
- package/lib/routes/universities/upc/jsj.js +0 -81
- package/lib/routes/universities/upc/main.js +0 -72
- package/lib/routes/universities/upcyjs/upcyjs.js +0 -23
- package/lib/routes/universities/zkyai/zkyai.js +0 -23
- package/lib/v2/ecust-jxjy/maintainer.js +0 -3
- package/lib/v2/ecust-jxjy/news.js +0 -47
- package/lib/v2/ecust-jxjy/radar.js +0 -13
- package/lib/v2/gov/sichuan/deyang/govpulicinfo.js +0 -95
- package/lib/v2/gov/stats/templates/attachments.art +0 -5
- package/lib/v2/gov/stats/utils.js +0 -75
- package/lib/v2/gzdaily/cmc.js +0 -60
- /package/lib/{routes/1point3acres/posts.js → v2/1point3acres/user/post.js} +0 -0
- /package/lib/{routes/1point3acres/threads.js → v2/1point3acres/user/thread.js} +0 -0
- /package/lib/v2/{ecust-jxjy → guangzhoumetro}/router.js +0 -0
- /package/lib/{routes → v2}/newrank/utils.js +0 -0
- /package/lib/{routes/universities → v2}/scut/jwc/news.js +0 -0
- /package/lib/{routes/universities → v2}/scut/jwc/notice.js +0 -0
- /package/lib/{routes/universities → v2}/scut/jwc/school.js +0 -0
- /package/lib/{routes → v2}/storyfm/index.js +0 -0
- /package/lib/{routes → v2}/telecompaper/search.js +0 -0
package/README.md
CHANGED
|
@@ -33,14 +33,6 @@ RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以
|
|
|
33
33
|
|
|
34
34
|
## Special Thanks
|
|
35
35
|
|
|
36
|
-
### Special Sponsors
|
|
37
|
-
|
|
38
|
-
<p>
|
|
39
|
-
<a href="https://rss3.io/" target="_blank"><img height="50px" src="https://i.imgur.com/vHtI4bz.png"></a>
|
|
40
|
-
</p>
|
|
41
|
-
|
|
42
|
-
[](https://docs.rsshub.app/en/support/)
|
|
43
|
-
|
|
44
36
|
### Contributors
|
|
45
37
|
|
|
46
38
|
[](https://github.com/DIYgod/RSSHub/graphs/contributors)
|
package/lib/api_router.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const Router = require('@koa/router');
|
|
2
2
|
const router = new Router();
|
|
3
|
-
const maintainer = require('./maintainer');
|
|
4
3
|
|
|
5
4
|
router.get('/routes/:name?', (ctx) => {
|
|
6
5
|
const result = {};
|
|
7
6
|
let counter = 0;
|
|
8
7
|
|
|
8
|
+
const maintainer = require('./maintainer');
|
|
9
9
|
Object.keys(maintainer).forEach((i) => {
|
|
10
10
|
const path = i;
|
|
11
11
|
const top = path.split('/')[1];
|
package/lib/config.js
CHANGED
|
@@ -9,6 +9,7 @@ const calculateValue = () => {
|
|
|
9
9
|
const twitter_tokens = {};
|
|
10
10
|
const email_config = {};
|
|
11
11
|
const discuz_cookies = {};
|
|
12
|
+
const medium_cookies = {};
|
|
12
13
|
|
|
13
14
|
for (const name in envs) {
|
|
14
15
|
if (name.startsWith('BILIBILI_COOKIE_')) {
|
|
@@ -23,6 +24,9 @@ const calculateValue = () => {
|
|
|
23
24
|
} else if (name.startsWith('DISCUZ_COOKIE_')) {
|
|
24
25
|
const cid = name.slice(14);
|
|
25
26
|
discuz_cookies[cid] = envs[name];
|
|
27
|
+
} else if (name.startsWith('MEDIUM_COOKIE_')) {
|
|
28
|
+
const username = name.slice(14).toLowerCase();
|
|
29
|
+
medium_cookies[username] = envs[name];
|
|
26
30
|
}
|
|
27
31
|
}
|
|
28
32
|
|
|
@@ -120,6 +124,9 @@ const calculateValue = () => {
|
|
|
120
124
|
chuiniu: {
|
|
121
125
|
member: envs.CHUINIU_MEMBER,
|
|
122
126
|
},
|
|
127
|
+
civitai: {
|
|
128
|
+
cookie: envs.CIVITAI_COOKIE,
|
|
129
|
+
},
|
|
123
130
|
dida365: {
|
|
124
131
|
username: envs.DIDA365_USERNAME,
|
|
125
132
|
password: envs.DIDA365_PASSWORD,
|
|
@@ -191,7 +198,8 @@ const calculateValue = () => {
|
|
|
191
198
|
cookie: envs.IG_COOKIE,
|
|
192
199
|
},
|
|
193
200
|
iwara: {
|
|
194
|
-
|
|
201
|
+
username: envs.IWARA_USERNAME,
|
|
202
|
+
password: envs.IWARA_PASSWORD,
|
|
195
203
|
},
|
|
196
204
|
lastfm: {
|
|
197
205
|
api_key: envs.LASTFM_API_KEY,
|
|
@@ -204,6 +212,10 @@ const calculateValue = () => {
|
|
|
204
212
|
accessToken: envs.MASTODON_API_ACCESS_TOKEN,
|
|
205
213
|
acctDomain: envs.MASTODON_API_ACCT_DOMAIN,
|
|
206
214
|
},
|
|
215
|
+
medium: {
|
|
216
|
+
cookies: medium_cookies,
|
|
217
|
+
articleCookie: envs.MEDIUM_ARTICLE_COOKIE || '',
|
|
218
|
+
},
|
|
207
219
|
miniflux: {
|
|
208
220
|
instance: envs.MINIFLUX_INSTANCE || 'https://reader.miniflux.app',
|
|
209
221
|
token: envs.MINIFLUX_TOKEN || '',
|
|
@@ -222,6 +234,9 @@ const calculateValue = () => {
|
|
|
222
234
|
username: envs.NHENTAI_USERNAME,
|
|
223
235
|
password: envs.NHENTAI_PASSWORD,
|
|
224
236
|
},
|
|
237
|
+
notion: {
|
|
238
|
+
key: envs.NOTION_TOKEN,
|
|
239
|
+
},
|
|
225
240
|
pianyuan: {
|
|
226
241
|
cookie: envs.PIANYUAN_COOKIE,
|
|
227
242
|
},
|
|
@@ -265,6 +280,7 @@ const calculateValue = () => {
|
|
|
265
280
|
weibo: {
|
|
266
281
|
app_key: envs.WEIBO_APP_KEY,
|
|
267
282
|
app_secret: envs.WEIBO_APP_SECRET,
|
|
283
|
+
cookies: envs.WEIBO_COOKIES,
|
|
268
284
|
redirect_url: envs.WEIBO_REDIRECT_URL,
|
|
269
285
|
},
|
|
270
286
|
wenku8: {
|
|
@@ -292,9 +308,6 @@ const calculateValue = () => {
|
|
|
292
308
|
zodgame: {
|
|
293
309
|
cookie: envs.ZODGAME_COOKIE,
|
|
294
310
|
},
|
|
295
|
-
civitai: {
|
|
296
|
-
cookie: envs.CIVITAI_COOKIE,
|
|
297
|
-
},
|
|
298
311
|
};
|
|
299
312
|
};
|
|
300
313
|
calculateValue();
|
package/lib/maintainer.js
CHANGED
|
@@ -27,7 +27,7 @@ for (const dir in maintainerPath) {
|
|
|
27
27
|
throw Error(`No maintainer in "${dir}".`);
|
|
28
28
|
}
|
|
29
29
|
for (const author of Object.values(routes)) {
|
|
30
|
-
if (
|
|
30
|
+
if (!Array.isArray(author)) {
|
|
31
31
|
throw Error(`Maintainers' name should be an array in "${dir}".`);
|
|
32
32
|
}
|
|
33
33
|
// check for [], [''] or ['Someone', '']
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const
|
|
1
|
+
const { LRUCache } = require('lru-cache');
|
|
2
2
|
const config = require('@/config').value;
|
|
3
3
|
|
|
4
4
|
const status = { available: false };
|
|
5
5
|
|
|
6
|
-
const memoryCache = new
|
|
6
|
+
const memoryCache = new LRUCache({
|
|
7
7
|
ttl: config.cache.routeExpire * 1000,
|
|
8
8
|
max: config.memory.max,
|
|
9
9
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const { art, json } = require('@/utils/render');
|
|
2
2
|
const path = require('path');
|
|
3
3
|
const config = require('@/config').value;
|
|
4
|
-
const typeRegex = /\.(atom|rss|debug\.json|json)$/;
|
|
4
|
+
const typeRegex = /\.(atom|rss|debug\.json|json|\d+\.debug\.html)$/;
|
|
5
5
|
const { collapseWhitespace, convertDateToISO8601 } = require('@/utils/common-utils');
|
|
6
6
|
|
|
7
7
|
module.exports = async (ctx, next) => {
|
|
@@ -26,6 +26,19 @@ module.exports = async (ctx, next) => {
|
|
|
26
26
|
ctx.body = JSON.stringify({ message: 'plugin does not set debug json' });
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
+
if (outputType.endsWith('.debug.html') && config.debugInfo) {
|
|
30
|
+
ctx.set({
|
|
31
|
+
'Content-Type': 'text/html; charset=UTF-8',
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const index = parseInt(outputType.match(/(\d+)\.debug\.html$/)[1]);
|
|
35
|
+
if (!(ctx.state.data && ctx.state.data.item && ctx.state.data.item[index])) {
|
|
36
|
+
ctx.body = `ctx.state.data.item[${index}] not found`;
|
|
37
|
+
} else {
|
|
38
|
+
ctx.body = ctx.state.data.item[index].description;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
29
42
|
if (outputType === 'json') {
|
|
30
43
|
ctx.set({ 'Content-Type': 'application/feed+json; charset=UTF-8' });
|
|
31
44
|
}
|
package/lib/radar.js
CHANGED
|
@@ -43,6 +43,29 @@ const validateRadarRules = (rule, dir) => {
|
|
|
43
43
|
if (!item.docs.startsWith('https://docs.rsshub.app/')) {
|
|
44
44
|
throw Error(`Radar rules for "${host}" in "${dir}" should start with 'https://docs.rsshub.app/'.`);
|
|
45
45
|
}
|
|
46
|
+
if (Array.isArray(item.source)) {
|
|
47
|
+
if (!item.source.length) {
|
|
48
|
+
// check for []
|
|
49
|
+
throw Error(`Radar rule of "${item.title}" for subdomain "${host}" in "${dir}" should not be empty.`);
|
|
50
|
+
}
|
|
51
|
+
if (item.source.some((s) => s.includes('#') || s.includes('='))) {
|
|
52
|
+
// Some will try to match '/some/path?a=1' which is not supported
|
|
53
|
+
throw Error(`Radar rule of "${item.title}" for subdomain "${host}" in "${dir}" cannot match URL hash or URL search parameters.`);
|
|
54
|
+
}
|
|
55
|
+
if (item.source.some((s) => !s.length)) {
|
|
56
|
+
// check for ['/some/thing', ''] and ['']
|
|
57
|
+
throw Error(`Radar rule of "${item.title}" for subdomain "${host}" in "${dir}" should not be empty.`);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
if (typeof item.source === 'string') {
|
|
61
|
+
if (!item.source.length) {
|
|
62
|
+
// check for ''
|
|
63
|
+
throw Error(`Radar rule of "${item.title}" for subdomain "${host}" in "${dir}" should not be empty.`);
|
|
64
|
+
}
|
|
65
|
+
if (item.source.includes('#') || item.source.includes('=')) {
|
|
66
|
+
throw Error(`Radar rule of "${item.title}" for subdomain "${host}" in "${dir}" cannot match URL hash or URL search parameters.`);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
46
69
|
for (const key in item) {
|
|
47
70
|
if (key !== 'title' && key !== 'docs' && key !== 'source' && key !== 'target') {
|
|
48
71
|
throw Error(`Radar rules for "${host}" in "${dir}" should not have property "${key}".`);
|