rsshub 1.0.0-master.b60a11e → 1.0.0-master.b60ef4d
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 +13 -48
- package/lib/api/radar/rules/all.ts +3 -6
- package/lib/api/radar/rules/one.ts +3 -6
- package/lib/config.ts +81 -6
- package/lib/errors/index.test.ts +1 -1
- package/lib/errors/index.tsx +8 -4
- package/lib/index.ts +1 -1
- package/lib/middleware/access-control.ts +1 -1
- package/lib/middleware/anti-hotlink.test.ts +197 -12
- package/lib/middleware/anti-hotlink.ts +30 -1
- package/lib/middleware/logger.ts +2 -2
- package/lib/middleware/parameter.test.ts +22 -5
- package/lib/middleware/parameter.ts +47 -17
- package/lib/middleware/template.tsx +24 -12
- package/lib/registry.test.ts +8 -0
- package/lib/registry.ts +2 -0
- package/lib/router.js +1 -12
- package/lib/routes/10jqka/namespace.ts +8 -0
- package/lib/routes/10jqka/realtimenews.ts +143 -0
- package/lib/routes/12371/zxfb.ts +2 -2
- package/lib/routes/141jav/index.ts +25 -21
- package/lib/routes/141ppv/index.ts +24 -20
- package/lib/routes/163/music/playlist.ts +2 -1
- package/lib/routes/36kr/index.ts +3 -3
- package/lib/routes/4ksj/forum.ts +54 -20
- package/lib/routes/500px/tribe-set.ts +3 -2
- package/lib/routes/51cto/recommend.ts +45 -7
- package/lib/routes/51read/article.ts +82 -0
- package/lib/routes/51read/namespace.ts +6 -0
- package/lib/routes/5eplay/index.ts +1 -51
- package/lib/routes/5eplay/utils.ts +5 -3
- package/lib/routes/69shu/article.ts +4 -4
- package/lib/routes/69shu/namespace.ts +1 -1
- package/lib/routes/6v123/utils.ts +2 -2
- package/lib/routes/8264/list.ts +41 -41
- package/lib/routes/a9vg/index.ts +214 -0
- package/lib/routes/a9vg/namespace.ts +1 -0
- package/lib/routes/a9vg/templates/description.art +17 -0
- package/lib/routes/abc/index.ts +2 -2
- package/lib/routes/academia/namespace.ts +1 -1
- package/lib/routes/acfun/article.ts +29 -3
- package/lib/routes/acfun/bangumi.ts +3 -2
- package/lib/routes/acfun/video.ts +4 -2
- package/lib/routes/afdian/dynamic.ts +1 -1
- package/lib/routes/afdian/explore.ts +10 -10
- package/lib/routes/agri/index.ts +307 -0
- package/lib/routes/agri/namespace.ts +8 -0
- package/lib/routes/agri/templates/description.art +21 -0
- package/lib/routes/aibase/discover.ts +388 -0
- package/lib/routes/aibase/namespace.ts +8 -0
- package/lib/routes/aibase/news.ts +118 -0
- package/lib/routes/aibase/templates/description.art +100 -0
- package/lib/routes/aibase/topic.ts +614 -0
- package/lib/routes/aibase/util.ts +114 -0
- package/lib/routes/ainvest/news.ts +3 -2
- package/lib/routes/ajmide/index.ts +3 -2
- package/lib/routes/alicesoft/infomation.ts +88 -0
- package/lib/routes/alicesoft/namespace.ts +6 -0
- package/lib/routes/aljazeera/index.ts +2 -2
- package/lib/routes/anime1/anime.ts +63 -0
- package/lib/routes/anime1/namespace.ts +6 -0
- package/lib/routes/anime1/search.ts +57 -0
- package/lib/routes/apnews/api.ts +77 -0
- package/lib/routes/apnews/rss.ts +4 -3
- package/lib/routes/apnews/sitemap.ts +91 -0
- package/lib/routes/apnews/topics.ts +10 -8
- package/lib/routes/apnews/utils.ts +30 -6
- package/lib/routes/apple/apps.ts +30 -8
- package/lib/routes/apple/podcast.ts +20 -16
- package/lib/routes/asus/bios.ts +88 -21
- package/lib/routes/asus/templates/bios.art +13 -6
- package/lib/routes/autocentre/index.ts +29 -0
- package/lib/routes/autocentre/namespace.ts +7 -0
- package/lib/routes/baidu/gushitong/index.ts +3 -2
- package/lib/routes/baidu/search.ts +4 -4
- package/lib/routes/{bangumi/moe → bangumi.moe}/index.ts +6 -5
- package/lib/routes/bangumi.moe/namespace.ts +6 -0
- package/lib/routes/{bangumi → bangumi.online}/namespace.ts +1 -1
- package/lib/routes/{bangumi/online → bangumi.online}/online.ts +3 -3
- package/lib/routes/{bangumi/tv → bangumi.tv}/calendar/today.ts +7 -7
- package/lib/routes/{bangumi/tv → bangumi.tv}/group/reply.ts +4 -4
- package/lib/routes/{bangumi/tv → bangumi.tv}/group/topic.ts +19 -19
- package/lib/routes/bangumi.tv/namespace.ts +6 -0
- package/lib/routes/bangumi.tv/other/followrank.ts +69 -0
- package/lib/routes/{bangumi/tv → bangumi.tv}/person/index.ts +4 -4
- package/lib/routes/{bangumi/tv → bangumi.tv}/subject/comments.ts +2 -2
- package/lib/routes/{bangumi/tv → bangumi.tv}/subject/ep.ts +4 -10
- package/lib/routes/{bangumi/tv → bangumi.tv}/subject/index.ts +2 -2
- package/lib/routes/{bangumi/tv → bangumi.tv}/subject/offcial-subject-api.ts +2 -2
- package/lib/routes/bangumi.tv/templates/subject.art +6 -0
- package/lib/routes/{bangumi/tv → bangumi.tv}/user/blog.ts +10 -10
- package/lib/routes/bangumi.tv/user/collections.ts +186 -0
- package/lib/routes/bbc/index.ts +3 -1
- package/lib/routes/behance/user.ts +14 -3
- package/lib/routes/beijingprice/index.ts +42 -47
- package/lib/routes/bestblogs/feeds.ts +107 -0
- package/lib/routes/bestblogs/namespace.ts +6 -0
- package/lib/routes/bigquant/collections.ts +3 -2
- package/lib/routes/bilibili/api-interface.d.ts +1 -0
- package/lib/routes/bilibili/bangumi.ts +47 -44
- package/lib/routes/bilibili/bilibili-recommend.ts +42 -0
- package/lib/routes/bilibili/cache.ts +41 -9
- package/lib/routes/bilibili/coin.ts +4 -4
- package/lib/routes/bilibili/dynamic.ts +117 -114
- package/lib/routes/bilibili/fav.ts +4 -4
- package/lib/routes/bilibili/followings-dynamic.ts +28 -4
- package/lib/routes/bilibili/followings-video.ts +13 -7
- package/lib/routes/bilibili/like.ts +4 -4
- package/lib/routes/bilibili/page.ts +5 -4
- package/lib/routes/bilibili/partion-ranking.ts +4 -4
- package/lib/routes/bilibili/partion.ts +4 -4
- package/lib/routes/bilibili/popular.ts +6 -4
- package/lib/routes/bilibili/ranking.ts +6 -7
- package/lib/routes/bilibili/readlist.ts +3 -2
- package/lib/routes/bilibili/templates/description.art +12 -0
- package/lib/routes/bilibili/types.ts +52 -0
- package/lib/routes/bilibili/user-channel.ts +10 -17
- package/lib/routes/bilibili/user-collection.ts +10 -18
- package/lib/routes/bilibili/user-fav.ts +4 -4
- package/lib/routes/bilibili/utils.ts +201 -10
- package/lib/routes/bilibili/video-all.ts +8 -3
- package/lib/routes/bilibili/video.ts +15 -14
- package/lib/routes/bilibili/vsearch.ts +22 -6
- package/lib/routes/bilibili/watchlater.ts +4 -4
- package/lib/routes/bilibili/weekly-recommend.ts +4 -9
- package/lib/routes/binance/announcement.ts +169 -0
- package/lib/routes/binance/types.ts +26 -0
- package/lib/routes/bing/daily-wallpaper.ts +1 -1
- package/lib/routes/biodiscover/index.ts +3 -3
- package/lib/routes/bitget/announcement.ts +201 -0
- package/lib/routes/bitget/namespace.ts +6 -0
- package/lib/routes/bitget/type.ts +26 -0
- package/lib/routes/bjnews/cat.ts +51 -0
- package/lib/routes/bjnews/column.ts +43 -0
- package/lib/routes/bjnews/namespace.ts +6 -0
- package/lib/routes/bjnews/utils.ts +19 -0
- package/lib/routes/bjp/apod.ts +7 -4
- package/lib/routes/bjx/fd.ts +35 -26
- package/lib/routes/bloomberg/authors.ts +3 -2
- package/lib/routes/bloomberg/index.ts +22 -18
- package/lib/routes/bookfere/category.ts +15 -3
- package/lib/routes/bsky/posts.ts +27 -7
- package/lib/routes/bsky/templates/post.art +4 -2
- package/lib/routes/bsky/utils.ts +3 -3
- package/lib/routes/buaa/jiaowu.ts +1 -1
- package/lib/routes/buaa/lib/space/newbook.ts +171 -0
- package/lib/routes/buaa/lib/space/templates/newbook.art +44 -0
- package/lib/routes/bupt/jwc.ts +130 -0
- package/lib/routes/caixin/latest.ts +3 -2
- package/lib/routes/cbpanet/index.ts +380 -0
- package/lib/routes/cbpanet/namespace.ts +8 -0
- package/lib/routes/cccfna/index.ts +2 -2
- package/lib/routes/ccfa/index.ts +216 -0
- package/lib/routes/ccfa/namespace.ts +8 -0
- package/lib/routes/ccfa/templates/description.art +7 -0
- package/lib/routes/cctv/category.ts +16 -12
- package/lib/routes/cctv/xwlb.ts +32 -10
- package/lib/routes/cdu/jwgg.ts +79 -0
- package/lib/routes/cdu/namespace.ts +6 -0
- package/lib/routes/ceph/blog.ts +72 -0
- package/lib/routes/ceph/namespace.ts +7 -0
- package/lib/routes/cffex/announcement.ts +73 -0
- package/lib/routes/cffex/namespace.ts +6 -0
- package/lib/routes/changba/user.ts +6 -5
- package/lib/routes/chikubi/category.ts +41 -0
- package/lib/routes/chikubi/index.ts +66 -0
- package/lib/routes/chikubi/namespace.ts +15 -0
- package/lib/routes/chikubi/navigation.ts +66 -0
- package/lib/routes/chikubi/nipple-video-category.ts +49 -0
- package/lib/routes/chikubi/nipple-video-maker.ts +49 -0
- package/lib/routes/chikubi/search.ts +39 -0
- package/lib/routes/chikubi/tag.ts +41 -0
- package/lib/routes/chikubi/utils.ts +135 -0
- package/lib/routes/chinadegrees/province.ts +33 -33
- package/lib/routes/chinaisa/index.ts +132 -132
- package/lib/routes/chinanews/index.ts +1 -1
- package/lib/routes/chinania/index.ts +240 -0
- package/lib/routes/chinania/namespace.ts +8 -0
- package/lib/routes/chinaventure/index.ts +1 -1
- package/lib/routes/chlinlearn/daily-blog.ts +55 -0
- package/lib/routes/chlinlearn/namespcae.ts +6 -0
- package/lib/routes/cisia/index.ts +264 -0
- package/lib/routes/cisia/namespace.ts +8 -0
- package/lib/routes/cjlu/namespace.ts +10 -0
- package/lib/routes/cjlu/yjsy/index.ts +107 -0
- package/lib/routes/cls/subject.ts +153 -0
- package/lib/routes/cls/templates/description.art +21 -0
- package/lib/routes/cnbc/rss.ts +1 -1
- package/lib/routes/cngal/weekly.ts +3 -2
- package/lib/routes/cnki/journals.ts +30 -1
- package/lib/routes/cohere/index.ts +54 -0
- package/lib/routes/cohere/namespace.ts +6 -0
- package/lib/routes/coolapk/dyh.ts +7 -1
- package/lib/routes/coolapk/hot.ts +7 -1
- package/lib/routes/coolapk/huati.ts +7 -1
- package/lib/routes/coolapk/namespace.ts +6 -0
- package/lib/routes/coolapk/toutiao.ts +7 -1
- package/lib/routes/coolapk/tuwen.ts +10 -5
- package/lib/routes/coolapk/user-dynamic.ts +7 -1
- package/lib/routes/copymanga/comic.ts +3 -1
- package/lib/routes/cs/index.ts +32 -32
- package/lib/routes/cs/video.ts +1 -1
- package/lib/routes/damai/activity.ts +3 -2
- package/lib/routes/dcfever/trading.ts +3 -5
- package/lib/routes/dcfever/utils.ts +13 -4
- package/lib/routes/dealstreetasia/home.ts +72 -0
- package/lib/routes/dealstreetasia/namespace.ts +6 -0
- package/lib/routes/dealstreetasia/section.ts +57 -0
- package/lib/routes/dedao/articles.ts +149 -0
- package/lib/routes/deepin/thread.ts +102 -0
- package/lib/routes/deeplearning/thebatch.ts +30 -18
- package/lib/routes/devolverdigital/blog.ts +59 -42
- package/lib/routes/devtrium/namespace.ts +6 -0
- package/lib/routes/devtrium/posts.ts +55 -0
- package/lib/routes/digitalcameraworld/news.ts +1 -1
- package/lib/routes/discord/channel.ts +10 -10
- package/lib/routes/discord/discord-api.ts +27 -32
- package/lib/routes/discord/templates/message.art +15 -0
- package/lib/routes/discourse/notifications.ts +2 -1
- package/lib/routes/discourse/official.ts +55 -0
- package/lib/routes/dlsite/campaign.ts +12 -4
- package/lib/routes/dlsite/ci-en/article.ts +3 -2
- package/lib/routes/dlsite/new.ts +10 -5
- package/lib/routes/dlsite/{index.ts → z-index/index.ts} +1 -1
- package/lib/routes/dockerhub/build.ts +3 -2
- package/lib/routes/dockerhub/utils.ts +4 -3
- package/lib/routes/dongqiudi/result.ts +1 -1
- package/lib/routes/dora-world/article.ts +3 -2
- package/lib/routes/douban/book/latest.ts +2 -2
- package/lib/routes/douban/movie/coming.ts +68 -0
- package/lib/routes/douban/other/group.ts +2 -1
- package/lib/routes/douban/other/topic.ts +24 -5
- package/lib/routes/douban/people/status.ts +44 -10
- package/lib/routes/douban/templates/movie_coming.art +27 -0
- package/lib/routes/douyin/types.ts +795 -0
- package/lib/routes/douyin/user.ts +51 -23
- package/lib/routes/douyin/utils.ts +1 -87
- package/lib/routes/dribbble/keyword.ts +1 -1
- package/lib/routes/dribbble/popular.ts +1 -1
- package/lib/routes/dribbble/user.ts +1 -1
- package/lib/routes/dribbble/utils.ts +16 -18
- package/lib/routes/duckdb/namespace.ts +6 -0
- package/lib/routes/duckdb/news.ts +65 -0
- package/lib/routes/dxy/board.ts +96 -0
- package/lib/routes/dxy/profile/thread.ts +1 -1
- package/lib/routes/dxy/special.ts +11 -10
- package/lib/routes/dxy/types.ts +195 -0
- package/lib/routes/dxy/utils.ts +17 -8
- package/lib/routes/dykszx/namespace.ts +8 -0
- package/lib/routes/dykszx/news.ts +88 -0
- package/lib/routes/eagle/blog.ts +13 -2
- package/lib/routes/eastmoney/report/index.ts +78 -18
- package/lib/routes/eastmoney/search/index.ts +3 -2
- package/lib/routes/eastmoney/templates/stock_description.art +36 -0
- package/lib/routes/eastmoney/ttjj/user.ts +3 -2
- package/lib/routes/eastmoney/utils.ts +35 -0
- package/lib/routes/easynomad/joblist.ts +56 -0
- package/lib/routes/easynomad/namespace.ts +6 -0
- package/lib/routes/ecnu/contest.ts +3 -3
- package/lib/routes/economist/espresso.ts +25 -64
- package/lib/routes/economist/full.ts +3 -2
- package/lib/routes/epicgames/index.ts +15 -5
- package/lib/routes/eshukan/academic.ts +134 -0
- package/lib/routes/eshukan/namespace.ts +8 -0
- package/lib/routes/eshukan/templates/description.art +7 -0
- package/lib/routes/espn/namespace.ts +6 -0
- package/lib/routes/espn/news.ts +120 -0
- package/lib/routes/espn/templates/media.art +19 -0
- package/lib/routes/eventernote/actors.ts +3 -2
- package/lib/routes/famitsu/category.ts +1 -1
- package/lib/routes/fanbox/index.ts +1 -1
- package/lib/routes/fanbox/types.ts +1 -5
- package/lib/routes/fantia/search.ts +72 -8
- package/lib/routes/fantia/user.ts +3 -2
- package/lib/routes/fashionnetwork/index.ts +192 -0
- package/lib/routes/fashionnetwork/namespace.ts +8 -0
- package/lib/routes/fashionnetwork/templates/description.art +17 -0
- package/lib/routes/fastbull/express-news.ts +3 -2
- package/lib/routes/fastbull/news.ts +3 -2
- package/lib/routes/fediverse/timeline.ts +57 -21
- package/lib/routes/finviz/news.ts +9 -3
- package/lib/routes/flashcat/blog.ts +61 -0
- package/lib/routes/flashcat/namespace.ts +6 -0
- package/lib/routes/follow/namespace.ts +6 -0
- package/lib/routes/follow/profile.ts +83 -0
- package/lib/routes/follow/types.ts +78 -0
- package/lib/routes/followin/index.ts +30 -3
- package/lib/routes/followin/news.ts +15 -3
- package/lib/routes/foresightnews/util.ts +1 -1
- package/lib/routes/foreverblog/feeds.ts +15 -17
- package/lib/routes/fortunechina/index.ts +24 -14
- package/lib/routes/ftm/index.ts +60 -0
- package/lib/routes/ftm/namespace.ts +6 -0
- package/lib/routes/fx678/kx.ts +3 -2
- package/lib/routes/galxe/index.ts +94 -0
- package/lib/routes/galxe/namespace.ts +9 -0
- package/lib/routes/gameapps/index.ts +8 -7
- package/lib/routes/gameapps/templates/description.art +0 -1
- package/lib/routes/gamer/ani/anime.ts +10 -3
- package/lib/routes/gamer/ani/new-anime.ts +4 -3
- package/lib/routes/gamer/gnn-index.ts +31 -11
- package/lib/routes/gamer/hot.ts +4 -3
- package/lib/routes/gamersky/ent.ts +57 -0
- package/lib/routes/gamersky/namespace.ts +10 -0
- package/lib/routes/gamersky/news.ts +91 -0
- package/lib/routes/gamersky/review.ts +80 -0
- package/lib/routes/gamersky/utils.ts +94 -0
- package/lib/routes/gdut/oa-news.ts +12 -17
- package/lib/routes/geekpark/index.ts +219 -0
- package/lib/routes/geekpark/namespace.ts +8 -0
- package/lib/routes/geekpark/templates/description.art +21 -0
- package/lib/routes/gelonghui/home.ts +15 -3
- package/lib/routes/gelonghui/hot-article.ts +13 -4
- package/lib/routes/gelonghui/keyword.ts +3 -2
- package/lib/routes/gelonghui/live.ts +3 -2
- package/lib/routes/gelonghui/subject.ts +3 -2
- package/lib/routes/gelonghui/user.ts +3 -2
- package/lib/routes/getitfree/util.ts +1 -1
- package/lib/routes/gettr/user.ts +3 -2
- package/lib/routes/gisreportsonline/index.ts +60 -0
- package/lib/routes/gisreportsonline/namespace.ts +6 -0
- package/lib/routes/github/activity.ts +56 -0
- package/lib/routes/github/advisor.ts +97 -0
- package/lib/routes/github/comments.ts +32 -30
- package/lib/routes/github/discussions.ts +194 -0
- package/lib/routes/github/issue.ts +4 -3
- package/lib/routes/github/pulls.ts +1 -1
- package/lib/routes/github/pulse.ts +26 -28
- package/lib/routes/github/search.ts +20 -18
- package/lib/routes/github/star.ts +4 -3
- package/lib/routes/github/trending.ts +27 -5
- package/lib/routes/gmcmonline/chinacustoms.ts +130 -0
- package/lib/routes/gmcmonline/namespace.ts +8 -0
- package/lib/routes/go/mhlw/pdf.ts +87 -0
- package/lib/routes/go/namespace.ts +8 -0
- package/lib/routes/go/niid/idwr-dl.ts +104 -0
- package/lib/routes/google/citations.ts +2 -2
- package/lib/routes/google/doodles.ts +3 -2
- package/lib/routes/google/research.ts +45 -0
- package/lib/routes/google/scholar.ts +2 -2
- package/lib/routes/google/search.ts +4 -4
- package/lib/routes/gov/cbirc/index.ts +371 -0
- package/lib/routes/gov/chongqing/gzw.ts +2 -2
- package/lib/routes/gov/chongqing/sydwgkzp.ts +4 -4
- package/lib/routes/gov/cn/namespace.ts +8 -0
- package/lib/routes/gov/{news → cn/news}/index.ts +11 -7
- package/lib/routes/gov/csrc/csrc.ts +541 -0
- package/lib/routes/gov/customs/list.ts +5 -2
- package/lib/routes/gov/customs/namespace.ts +7 -0
- package/lib/routes/gov/jgjcndrc/index.ts +95 -66
- package/lib/routes/gov/lswz/index.ts +289 -0
- package/lib/routes/gov/moa/moa.ts +3 -3
- package/lib/routes/gov/moa/szcpxx.ts +115 -0
- package/lib/routes/gov/moa/zdscxx.ts +71 -21
- package/lib/routes/gov/ndrc/fggz.ts +637 -2
- package/lib/routes/gov/ndrc/namespace.ts +8 -0
- package/lib/routes/gov/ndrc/xwdt.ts +28 -8
- package/lib/routes/gov/ndrc/zfxxgk.ts +106 -0
- package/lib/routes/gov/pudong/zwgk.ts +65 -0
- package/lib/routes/gov/zj/ningbogzw-notice.ts +50 -0
- package/lib/routes/gov/zj/ningborsjnotice.ts +50 -0
- package/lib/routes/gov/zj/search.ts +17 -12
- package/lib/routes/gq/news.ts +4 -3
- package/lib/routes/gs/developer/blog.ts +58 -0
- package/lib/routes/gs/namespace.ts +9 -0
- package/lib/routes/guancha/member.ts +1 -1
- package/lib/routes/hackernews/index.ts +16 -5
- package/lib/routes/hameln/chapter.ts +2 -2
- package/lib/routes/healthz.ts +8 -0
- package/lib/routes/hellogithub/index.ts +17 -67
- package/lib/routes/hellogithub/report.ts +1 -1
- package/lib/routes/hex-rays/index.ts +23 -29
- package/lib/routes/hfut/hf/notice.ts +43 -0
- package/lib/routes/hfut/hf/utils.ts +80 -0
- package/lib/routes/hfut/namespace.ts +6 -0
- package/lib/routes/hfut/xc/notice.ts +43 -0
- package/lib/routes/hfut/xc/utils.ts +73 -0
- package/lib/routes/hitcon/zeroday.ts +1 -1
- package/lib/routes/hket/index.ts +80 -76
- package/lib/routes/hko/earthquake.ts +56 -0
- package/lib/routes/hko/namespace.ts +8 -0
- package/lib/routes/hko/weather.ts +56 -0
- package/lib/routes/hottoys/index.ts +63 -0
- package/lib/routes/hottoys/namespace.ts +6 -0
- package/lib/routes/hpoi/all.ts +17 -6
- package/lib/routes/hpoi/character.ts +18 -6
- package/lib/routes/hpoi/info.ts +11 -6
- package/lib/routes/hpoi/user.ts +16 -4
- package/lib/routes/hpoi/utils.ts +36 -3
- package/lib/routes/hpoi/work.ts +18 -6
- package/lib/routes/huggingface/blog-zh.ts +1 -1
- package/lib/routes/hust/gs.ts +281 -0
- package/lib/routes/hust/mse.ts +575 -0
- package/lib/routes/hust/namespace.ts +1 -1
- package/lib/routes/huxiu/util.ts +2 -2
- package/lib/routes/i-cable/namespace.ts +6 -0
- package/lib/routes/i-cable/news.ts +77 -0
- package/lib/routes/i-cable/templates/description.art +8 -0
- package/lib/routes/idolypride/news.ts +3 -2
- package/lib/routes/imdb/chart.ts +15 -3
- package/lib/routes/imhcg/blog.ts +47 -0
- package/lib/routes/imhcg/namespace.ts +7 -0
- package/lib/routes/imop/namespace.ts +10 -0
- package/lib/routes/imop/tianshu.ts +53 -0
- package/lib/routes/infoq/presentations.ts +203 -0
- package/lib/routes/infoq/templates/description.art +41 -0
- package/lib/routes/infzm/hot.ts +39 -0
- package/lib/routes/infzm/index.ts +6 -33
- package/lib/routes/infzm/utils.ts +34 -0
- package/lib/routes/inoreader/index.ts +6 -3
- package/lib/routes/inoreader/rss.ts +3 -2
- package/lib/routes/inspirehep/author.ts +46 -0
- package/lib/routes/inspirehep/literature.ts +42 -0
- package/lib/routes/inspirehep/namespace.ts +7 -0
- package/lib/routes/inspirehep/types.ts +210 -0
- package/lib/routes/inspirehep/utils.ts +15 -0
- package/lib/routes/instagram/private-api/index.ts +20 -3
- package/lib/routes/iplaysoft/index.ts +68 -0
- package/lib/routes/iplaysoft/namespace.ts +6 -0
- package/lib/routes/ipsw.dev/index.ts +64 -0
- package/lib/routes/ipsw.dev/namespace.ts +7 -0
- package/lib/routes/ipsw.dev/templates/description.art +20 -0
- package/lib/routes/iwara/subscriptions.ts +1 -1
- package/lib/routes/ixigua/user-video.ts +18 -7
- package/lib/routes/j-test/namespace.ts +6 -0
- package/lib/routes/j-test/news.ts +64 -0
- package/lib/routes/javbus/index.ts +2 -1
- package/lib/routes/javdb/actors.ts +6 -2
- package/lib/routes/javtiful/actress.ts +37 -0
- package/lib/routes/javtiful/channel.ts +37 -0
- package/lib/routes/javtiful/namespace.ts +6 -0
- package/lib/routes/javtiful/templates/description.art +7 -0
- package/lib/routes/javtiful/utils.ts +18 -0
- package/lib/routes/jianshu/collection.ts +3 -2
- package/lib/routes/jianshu/home.ts +3 -2
- package/lib/routes/jianshu/user.ts +3 -2
- package/lib/routes/jike/topic.ts +10 -3
- package/lib/routes/jike/user.ts +3 -2
- package/lib/routes/jin10/index.ts +3 -2
- package/lib/routes/jin10/topic.ts +3 -2
- package/lib/routes/jinse/lives.ts +10 -3
- package/lib/routes/jinse/timeline.ts +25 -3
- package/lib/routes/jiuyangongshe/community.ts +3 -1
- package/lib/routes/jjwxc/book.ts +22 -17
- package/lib/routes/joins/chinese.ts +218 -0
- package/lib/routes/joins/namespace.ts +8 -0
- package/lib/routes/joins/templates/description.art +17 -0
- package/lib/routes/juejin/dynamic.ts +114 -0
- package/lib/routes/kakuyomu/namespace.ts +6 -0
- package/lib/routes/kakuyomu/types.ts +6 -0
- package/lib/routes/kakuyomu/works.ts +73 -0
- package/lib/routes/kanxue/topic.ts +22 -22
- package/lib/routes/kaopu/news.ts +3 -3
- package/lib/routes/kemono/index.ts +21 -0
- package/lib/routes/keylol/index.ts +56 -11
- package/lib/routes/kisskiss/blog.ts +74 -0
- package/lib/routes/kisskiss/namespace.ts +6 -0
- package/lib/routes/konachan/namespace.ts +7 -0
- package/lib/routes/konachan/post.ts +94 -0
- package/lib/routes/ktown4u/artist-brandlist.ts +61 -0
- package/lib/routes/ktown4u/namespace.ts +6 -0
- package/lib/routes/kurogames/namespace.ts +7 -0
- package/lib/routes/kurogames/wutheringwaves/news.ts +59 -0
- package/lib/routes/kyodonews/index.ts +1 -1
- package/lib/routes/laohu8/personal.ts +3 -2
- package/lib/routes/lemmy/index.ts +30 -3
- package/lib/routes/lemmy/namespace.ts +1 -0
- package/lib/routes/link3/events.ts +86 -0
- package/lib/routes/link3/namespace.ts +6 -0
- package/lib/routes/link3/profile.ts +143 -0
- package/lib/routes/linkedin/cn/renderer.ts +1 -1
- package/lib/routes/linkedin/jobs.ts +3 -2
- package/lib/routes/linkedin/utils.ts +3 -3
- package/lib/routes/lmu/jobs.ts +96 -0
- package/lib/routes/lmu/namespace.ts +17 -0
- package/lib/routes/lmu/templates/jobPosting.art +11 -0
- package/lib/routes/lofter/collection.ts +87 -0
- package/lib/routes/lofter/user.ts +3 -2
- package/lib/routes/lorientlejour/index.ts +186 -0
- package/lib/routes/lorientlejour/namespace.ts +7 -0
- package/lib/routes/lorientlejour/templates/description.art +18 -0
- package/lib/routes/lovelive-anime/namespace.ts +1 -1
- package/lib/routes/lovelive-anime/news.ts +56 -26
- package/lib/routes/lovelive-anime/schedules.ts +22 -11
- package/lib/routes/lovelive-anime/templates/description.art +1 -1
- package/lib/routes/lovelive-anime/templates/scheduleDesc.art +0 -1
- package/lib/routes/lovelive-anime/topics.ts +89 -38
- package/lib/routes/luma/index.ts +92 -0
- package/lib/routes/luma/namespace.ts +6 -0
- package/lib/routes/maccms/index.ts +72 -0
- package/lib/routes/maccms/namespace.ts +9 -0
- package/lib/routes/maccms/type.ts +102 -0
- package/lib/routes/macupdate/app.ts +3 -7
- package/lib/routes/magnumphotos/magazine.ts +3 -2
- package/lib/routes/malaysiakini/index.ts +179 -0
- package/lib/routes/malaysiakini/namespace.ts +11 -0
- package/lib/routes/manhuagui/comic.ts +1 -1
- package/lib/routes/mastodon/account-id.ts +26 -3
- package/lib/routes/mastodon/acct.ts +15 -4
- package/lib/routes/mastodon/timeline-local.ts +14 -3
- package/lib/routes/mastodon/timeline-remote.ts +14 -3
- package/lib/routes/mckinsey/cn/index.ts +10 -3
- package/lib/routes/mcmod/index.ts +105 -0
- package/lib/routes/mcmod/namespace.ts +6 -0
- package/lib/routes/mcmod/templates/mod.art +13 -0
- package/lib/routes/meishichina/index.ts +1997 -0
- package/lib/routes/meishichina/namespace.ts +8 -0
- package/lib/routes/metacritic/index.ts +10 -0
- package/lib/routes/mi/crowdfunding.ts +43 -22
- package/lib/routes/mi/templates/crowdfunding.art +28 -0
- package/lib/routes/mi/types.ts +40 -0
- package/lib/routes/mi/utils.ts +80 -0
- package/lib/routes/mihoyo/bbs/img-ranking.ts +4 -4
- package/lib/routes/mihoyo/bbs/static-data.ts +7 -0
- package/lib/routes/minecraft/version.ts +1 -1
- package/lib/routes/mingpao/index.ts +103 -36
- package/lib/routes/mingpao/namespace.ts +1 -1
- package/lib/routes/mirrormedia/category.ts +101 -0
- package/lib/routes/mirrormedia/index.ts +3 -16
- package/lib/routes/mirrormedia/utils.ts +19 -0
- package/lib/routes/misskey/featured-notes.ts +3 -2
- package/lib/routes/misskey/templates/note.art +6 -0
- package/lib/routes/misskey/types.ts +111 -0
- package/lib/routes/misskey/user-timeline.ts +70 -0
- package/lib/routes/misskey/utils.ts +74 -11
- package/lib/routes/misskon/namespace.ts +6 -0
- package/lib/routes/misskon/posts.ts +33 -0
- package/lib/routes/misskon/tag.ts +38 -0
- package/lib/routes/misskon/top.ts +67 -0
- package/lib/routes/misskon/utils.ts +41 -0
- package/lib/routes/miui/firmware/index.ts +7 -7
- package/lib/routes/modian/zhongchou.ts +20 -20
- package/lib/routes/nasa/apod.ts +4 -3
- package/lib/routes/nasa/namespace.ts +1 -1
- package/lib/routes/natgeo/dailyphoto.ts +4 -3
- package/lib/routes/natgeo/dailyselection.ts +17 -2
- package/lib/routes/nationalgeographic/latest-stories.ts +1 -1
- package/lib/routes/nationalgeographic/templates/stories.art +1 -1
- package/lib/routes/nature/cover.ts +5 -3
- package/lib/routes/nature/research.ts +1 -1
- package/lib/routes/nature/siteindex.ts +25 -11
- package/lib/routes/nature/utils.ts +5 -7
- package/lib/routes/ncku/csie.ts +83 -0
- package/lib/routes/ncku/namespace.ts +6 -0
- package/lib/routes/ncku/phys.ts +96 -0
- package/lib/routes/neea/index.ts +47 -19
- package/lib/routes/neea/jlpt.ts +12 -15
- package/lib/routes/neea/namespace.ts +2 -2
- package/lib/routes/news/namespace.ts +1 -1
- package/lib/routes/newyorker/news.ts +29 -21
- package/lib/routes/nga/forum.ts +3 -2
- package/lib/routes/nhk/news.ts +32 -15
- package/lib/routes/nicovideo/namespace.ts +7 -0
- package/lib/routes/nicovideo/templates/video.art +7 -0
- package/lib/routes/nicovideo/types.ts +54 -0
- package/lib/routes/nicovideo/utils.ts +37 -0
- package/lib/routes/nicovideo/video.ts +47 -0
- package/lib/routes/nikkei/cn/index.ts +12 -1
- package/lib/routes/nippon/index.ts +2 -2
- package/lib/routes/nodejs/blog.ts +18 -18
- package/lib/routes/nosec/index.ts +9 -9
- package/lib/routes/notefolio/search.ts +42 -5
- package/lib/routes/nudt/yjszs.ts +33 -13
- package/lib/routes/nyaa/main.ts +2 -3
- package/lib/routes/nyaa/namespace.ts +10 -0
- package/lib/routes/nytimes/book.ts +25 -28
- package/lib/routes/nytimes/daily-briefing-chinese.ts +4 -4
- package/lib/routes/nytimes/index.ts +16 -9
- package/lib/routes/nytimes/namespace.ts +1 -1
- package/lib/routes/obsidian/namespace.ts +6 -0
- package/lib/routes/obsidian/publish.ts +83 -0
- package/lib/routes/obsidian/utils.ts +8 -0
- package/lib/routes/oct0pu5/namespace.ts +10 -0
- package/lib/routes/oct0pu5/rss.ts +48 -0
- package/lib/routes/oncc/templates/article.art +1 -1
- package/lib/routes/openrice/namespace.ts +8 -0
- package/lib/routes/openrice/offers.ts +80 -0
- package/lib/routes/openrice/promos.ts +74 -0
- package/lib/routes/openrice/templates/description.art +4 -0
- package/lib/routes/oschina/news.ts +2 -0
- package/lib/routes/oup/index.ts +20 -19
- package/lib/routes/oup/templates/article.art +0 -4
- package/lib/routes/papers/index.ts +7 -1
- package/lib/routes/parliament.uk/commonslibrary.ts +55 -0
- package/lib/routes/parliament.uk/lordslibrary.ts +55 -0
- package/lib/routes/parliament.uk/namespace.ts +6 -0
- package/lib/routes/pconline/focus.ts +143 -0
- package/lib/routes/pconline/namespace.ts +10 -0
- package/lib/routes/people/index.ts +8 -2
- package/lib/routes/picnob/namespace.ts +1 -4
- package/lib/routes/picnob/user.ts +14 -5
- package/lib/routes/picuki/namespace.ts +1 -4
- package/lib/routes/picuki/profile.ts +61 -46
- package/lib/routes/pixabay/search.ts +14 -3
- package/lib/routes/pixiv/ranking.ts +3 -1
- package/lib/routes/pixiv/search.ts +22 -2
- package/lib/routes/pixiv/user.ts +2 -1
- package/lib/routes/pixiv/utils.ts +3 -3
- package/lib/routes/pixivision/index.ts +85 -0
- package/lib/routes/pixivision/namespace.ts +6 -0
- package/lib/routes/pixivision/utils.ts +86 -0
- package/lib/routes/pku/bbs/hot.ts +1 -1
- package/lib/routes/plurk/top.ts +3 -2
- package/lib/routes/plurk/topic.ts +3 -2
- package/lib/routes/plurk/user.ts +3 -2
- package/lib/routes/podwise/collections.ts +3 -2
- package/lib/routes/pornhub/category.ts +3 -2
- package/lib/routes/pornhub/model.ts +6 -7
- package/lib/routes/pornhub/pornstar.ts +67 -19
- package/lib/routes/pornhub/search.ts +3 -2
- package/lib/routes/pornhub/users.ts +3 -5
- package/lib/routes/ps/monthly-games.ts +7 -6
- package/lib/routes/psyche/topic.ts +1 -1
- package/lib/routes/psyche/type.ts +1 -1
- package/lib/routes/psyche/utils.ts +1 -1
- package/lib/routes/qiche365/namespace.ts +5 -0
- package/lib/routes/qiche365/recall.ts +53 -0
- package/lib/routes/qidian/chapter.ts +4 -3
- package/lib/routes/qidian/namespace.ts +1 -1
- package/lib/routes/qq/pd/guild.ts +146 -0
- package/lib/routes/qq/pd/types.ts +82 -0
- package/lib/routes/qq/pd/utils.ts +119 -0
- package/lib/routes/questn/community.ts +76 -0
- package/lib/routes/questn/events.ts +101 -0
- package/lib/routes/questn/namespace.ts +6 -0
- package/lib/routes/questn/util.ts +16 -0
- package/lib/routes/readwise/list.ts +152 -0
- package/lib/routes/readwise/namespace.ts +6 -0
- package/lib/routes/rebase/geekdaily.ts +35 -0
- package/lib/routes/rebase/namespace.ts +6 -0
- package/lib/routes/resonac/namespace.ts +6 -0
- package/lib/routes/resonac/products.ts +85 -0
- package/lib/routes/reuters/common.ts +178 -123
- package/lib/routes/reuters/investigates.ts +3 -2
- package/lib/routes/rss3/index.ts +162 -0
- package/lib/routes/rss3/interfaces/metadata.ts +67 -0
- package/lib/routes/rss3/namespace.ts +7 -0
- package/lib/routes/rsshub/routes.ts +20 -13
- package/lib/routes/rsshub/transform/html.ts +114 -75
- package/lib/routes/rsshub/transform/json.ts +14 -8
- package/lib/routes/samd/news.ts +2 -2
- package/lib/routes/sara/index.ts +3 -3
- package/lib/routes/sciencedirect/cf-email.ts +0 -1
- package/lib/routes/sciencenet/user.ts +3 -1
- package/lib/routes/scmp/utils.ts +2 -2
- package/lib/routes/scut/gzic/media.ts +71 -0
- package/lib/routes/scut/gzic/news.ts +65 -0
- package/lib/routes/scut/gzic/notice.ts +88 -0
- package/lib/routes/sdu/{cs.ts → cs/index.ts} +46 -12
- package/lib/routes/sdu/cs/yjsgz.ts +85 -0
- package/lib/routes/sdu/gjsw.ts +80 -0
- package/lib/routes/sdu/namespace.ts +2 -2
- package/lib/routes/sdu/qd/xszxqd.ts +98 -0
- package/lib/routes/sdu/qd/xyb.ts +82 -0
- package/lib/routes/sdu/ygb.ts +90 -0
- package/lib/routes/segmentfault/user.ts +3 -3
- package/lib/routes/segmentfault/utils.ts +23 -27
- package/lib/routes/shiep/config.ts +4 -10
- package/lib/routes/shiep/index.ts +9 -9
- package/lib/routes/showstart/artist.ts +5 -4
- package/lib/routes/showstart/brand.ts +5 -4
- package/lib/routes/showstart/event.ts +8 -7
- package/lib/routes/showstart/search.ts +43 -9
- package/lib/routes/showstart/service.ts +81 -53
- package/lib/routes/showstart/site.ts +41 -0
- package/lib/routes/showstart/utils.ts +9 -8
- package/lib/routes/sis001/author.ts +55 -0
- package/lib/routes/sis001/common.ts +73 -0
- package/lib/routes/sis001/forum.ts +10 -35
- package/lib/routes/sis001/namespace.ts +3 -0
- package/lib/routes/sjtu/jwc.ts +4 -1
- package/lib/routes/sjtu/namespace.ts +1 -1
- package/lib/routes/sjtu/seiee/index.ts +97 -0
- package/lib/routes/skeb/following-creators.ts +52 -0
- package/lib/routes/skeb/following-works.ts +52 -0
- package/lib/routes/skeb/friend-works.ts +52 -0
- package/lib/routes/skeb/index.ts +131 -0
- package/lib/routes/skeb/namespace.ts +6 -0
- package/lib/routes/skeb/search.ts +77 -0
- package/lib/routes/skeb/templates/creator.art +8 -0
- package/lib/routes/skeb/templates/work.art +10 -0
- package/lib/routes/skeb/utils.ts +155 -0
- package/lib/routes/skeb/works.ts +88 -0
- package/lib/routes/skebetter/illust.ts +83 -0
- package/lib/routes/skebetter/index.ts +83 -0
- package/lib/routes/skebetter/manga.ts +65 -0
- package/lib/routes/skebetter/namespace.ts +6 -0
- package/lib/routes/skebetter/utils.ts +72 -0
- package/lib/routes/smzdm/keyword.ts +3 -2
- package/lib/routes/smzdm/product.ts +85 -0
- package/lib/routes/smzdm/ranking.ts +180 -46
- package/lib/routes/sogou/search.ts +4 -4
- package/lib/routes/solidot/main.ts +28 -12
- package/lib/routes/sorrycc/index.ts +85 -0
- package/lib/routes/sorrycc/namespace.ts +6 -0
- package/lib/routes/sorrycc/types.ts +13 -0
- package/lib/routes/soundon/namespace.ts +6 -0
- package/lib/routes/soundon/podcast.ts +80 -0
- package/lib/routes/soundon/types.ts +67 -0
- package/lib/routes/spankbang/namespace.ts +6 -0
- package/lib/routes/spankbang/new-videos.ts +90 -0
- package/lib/routes/spankbang/templates/video.art +7 -0
- package/lib/routes/spotify/artist.ts +3 -2
- package/lib/routes/spotify/playlist.ts +3 -2
- package/lib/routes/spotify/show.ts +1 -1
- package/lib/routes/springer/journal.ts +10 -12
- package/lib/routes/sse/sselawsrules.ts +370 -0
- package/lib/routes/sspai/author.ts +1 -1
- package/lib/routes/sspai/column.ts +1 -1
- package/lib/routes/sspai/index.ts +6 -5
- package/lib/routes/sspai/matrix.ts +1 -1
- package/lib/routes/sspai/series-update.ts +1 -1
- package/lib/routes/sspai/tag.ts +1 -1
- package/lib/routes/sspai/topic.ts +1 -1
- package/lib/routes/stcn/index.ts +43 -3
- package/lib/routes/stockedge/daily-news.ts +3 -2
- package/lib/routes/straitstimes/index.ts +135 -0
- package/lib/routes/straitstimes/namespace.ts +7 -0
- package/lib/routes/straitstimes/templates/description.art +27 -0
- package/lib/routes/sustainabilitymag/articles.ts +2 -0
- package/lib/routes/sustainabilitymag/namespace.ts +1 -1
- package/lib/routes/swjtu/scai/bks.ts +76 -0
- package/lib/routes/sycl/feeds.ts +47 -0
- package/lib/routes/sycl/namespace.ts +6 -0
- package/lib/routes/syosetu/chapter.ts +2 -2
- package/lib/routes/sysu/ygafz.ts +5 -5
- package/lib/routes/szftedu/dongtai.ts +62 -0
- package/lib/routes/szftedu/gonggao.ts +62 -0
- package/lib/routes/szftedu/namespace.ts +6 -0
- package/lib/routes/szse/rule.ts +315 -42
- package/lib/routes/t66y/index.ts +29 -7
- package/lib/routes/taoguba/blog.ts +1 -1
- package/lib/routes/taoguba/index.ts +1 -1
- package/lib/routes/techcrunch/news.ts +20 -29
- package/lib/routes/techcrunch/templates/description.art +7 -0
- package/lib/routes/techflowpost/express.ts +3 -2
- package/lib/routes/techflowpost/index.ts +3 -1
- package/lib/routes/telecompaper/news.ts +1 -1
- package/lib/routes/telegram/blog.ts +8 -7
- package/lib/routes/telegram/channel.ts +56 -12
- package/lib/routes/telegram/scripts/get-telegram-session.mjs +41 -0
- package/lib/routes/telegram/stickerpack.ts +5 -5
- package/lib/routes/telegram/tglib/channel.ts +8 -4
- package/lib/routes/tencent/news/author.ts +8 -5
- package/lib/routes/tesla/cx.ts +47 -47
- package/lib/routes/test/index.ts +50 -43
- package/lib/routes/tgbus/list.ts +2 -2
- package/lib/routes/the/index.ts +214 -0
- package/lib/routes/the/namespace.ts +8 -0
- package/lib/routes/the/templates/description.art +27 -0
- package/lib/routes/the/util.ts +307 -0
- package/lib/routes/theblockbeats/index.ts +32 -7
- package/lib/routes/theinitium/app.ts +159 -0
- package/lib/routes/theinitium/templates/description.art +17 -0
- package/lib/routes/themoviedb/seasons.ts +3 -2
- package/lib/routes/thepetcity/index.ts +6 -6
- package/lib/routes/thoughtworks/index.ts +71 -0
- package/lib/routes/thoughtworks/namespace.ts +6 -0
- package/lib/routes/threads/index.ts +26 -20
- package/lib/routes/threads/utils.ts +19 -1
- package/lib/routes/tingtingfm/program.ts +3 -2
- package/lib/routes/tju/cic/index.ts +2 -2
- package/lib/routes/tju/news/index.ts +2 -2
- package/lib/routes/tju/oaa/index.ts +2 -2
- package/lib/routes/tkww/index.ts +83 -0
- package/lib/routes/tkww/namespace.ts +6 -0
- package/lib/routes/towardsdatascience/latest.ts +67 -0
- package/lib/routes/towardsdatascience/namespace.ts +6 -0
- package/lib/routes/ttv/index.ts +1 -1
- package/lib/routes/tvb/news.ts +3 -1
- package/lib/routes/twitch/live.ts +3 -2
- package/lib/routes/twitch/video.ts +15 -6
- package/lib/routes/twitter/api/index.ts +3 -1
- package/lib/routes/twitter/api/mobile-api/api.ts +14 -0
- package/lib/routes/twitter/api/mobile-api/login.ts +163 -136
- package/lib/routes/twitter/api/mobile-api/token.ts +2 -0
- package/lib/routes/twitter/api/web-api/api.ts +35 -10
- package/lib/routes/twitter/api/web-api/constants.ts +18 -15
- package/lib/routes/twitter/api/web-api/login.ts +75 -0
- package/lib/routes/twitter/api/web-api/utils.ts +189 -60
- package/lib/routes/twitter/home-latest.ts +63 -0
- package/lib/routes/twitter/home.ts +6 -3
- package/lib/routes/twitter/keyword.ts +3 -2
- package/lib/routes/twitter/likes.ts +5 -2
- package/lib/routes/twitter/list.ts +13 -15
- package/lib/routes/twitter/media.ts +17 -7
- package/lib/routes/twitter/namespace.ts +3 -2
- package/lib/routes/twitter/tweet.ts +1 -0
- package/lib/routes/twitter/user.ts +20 -10
- package/lib/routes/twitter/utils.ts +13 -4
- package/lib/routes/uber/blog.ts +1 -1
- package/lib/routes/udn/breaking-news.ts +2 -2
- package/lib/routes/uestc/bbs.ts +97 -0
- package/lib/routes/uestc/gr.ts +65 -37
- package/lib/routes/uestc/jwc.ts +49 -28
- package/lib/routes/uestc/namespace.ts +1 -1
- package/lib/routes/ustc/scms.ts +97 -0
- package/lib/routes/v2ex/tab.ts +3 -2
- package/lib/routes/v2ex/topics.ts +19 -3
- package/lib/routes/v2ex/xna.ts +55 -0
- package/lib/routes/vimeo/category.ts +4 -3
- package/lib/routes/vimeo/usr-videos.ts +3 -2
- package/lib/routes/voronoiapp/author.ts +41 -0
- package/lib/routes/voronoiapp/common.ts +247 -0
- package/lib/routes/voronoiapp/editors-pick.ts +28 -0
- package/lib/routes/voronoiapp/home.ts +29 -0
- package/lib/routes/voronoiapp/latest.ts +28 -0
- package/lib/routes/voronoiapp/namespace.ts +6 -0
- package/lib/routes/voronoiapp/popular.ts +49 -0
- package/lib/routes/voronoiapp/search.ts +33 -0
- package/lib/routes/voronoiapp/types.d.ts +78 -0
- package/lib/routes/warthunder/news.ts +8 -8
- package/lib/routes/washingtonpost/app.ts +118 -0
- package/lib/routes/washingtonpost/namespace.ts +6 -0
- package/lib/routes/washingtonpost/templates/description.art +59 -0
- package/lib/routes/watasuke/blog.ts +1 -1
- package/lib/routes/wchscu/namespace.ts +6 -0
- package/lib/routes/wchscu/recruit.ts +73 -0
- package/lib/routes/wechat/ershcimi.ts +6 -4
- package/lib/routes/weibo/keyword.ts +3 -2
- package/lib/routes/weibo/namespace.ts +2 -1
- package/lib/routes/weibo/oasis/user.ts +1 -1
- package/lib/routes/weibo/search/hot.ts +12 -7
- package/lib/routes/weibo/super-index.ts +23 -11
- package/lib/routes/weibo/user.ts +24 -4
- package/lib/routes/weibo/utils.ts +20 -4
- package/lib/routes/wfu/news.ts +1 -1
- package/lib/routes/whu/cs.ts +11 -3
- package/lib/routes/whu/gs/index.ts +2 -1
- package/lib/routes/whu/news.ts +27 -2
- package/lib/routes/withgoogle/explorables.ts +54 -0
- package/lib/routes/withgoogle/namespace.ts +6 -0
- package/lib/routes/wordpress/util.ts +1 -1
- package/lib/routes/xaut/index.ts +13 -20
- package/lib/routes/xaut/namespace.ts +1 -1
- package/lib/routes/xbookcn/blog.ts +66 -0
- package/lib/routes/xbookcn/namespace.ts +6 -0
- package/lib/routes/xiaohongshu/notes.ts +10 -2
- package/lib/routes/xiaohongshu/user.ts +30 -6
- package/lib/routes/xiaohongshu/util.ts +3 -1
- package/lib/routes/xiaoyuzhou/podcast.ts +37 -8
- package/lib/routes/xidian/cs.ts +143 -0
- package/lib/routes/xidian/gr.ts +289 -0
- package/lib/routes/xidian/jwc.ts +1 -0
- package/lib/routes/xidian/namespace.ts +1 -1
- package/lib/routes/xsijishe/forum.ts +5 -0
- package/lib/routes/xsijishe/rank.ts +23 -3
- package/lib/routes/xueqiu/cookies.ts +18 -3
- package/lib/routes/xueqiu/favorite.ts +21 -5
- package/lib/routes/xueqiu/hots.ts +6 -6
- package/lib/routes/xueqiu/stock-info.ts +11 -16
- package/lib/routes/xueqiu/today.ts +1 -1
- package/lib/routes/xueqiu/user.ts +5 -4
- package/lib/routes/yahoo/news/index.ts +149 -0
- package/lib/routes/yahoo/news/listid.ts +67 -0
- package/lib/routes/yahoo/news/{tw/provider-helper.ts → provider-helper.ts} +9 -4
- package/lib/routes/yahoo/news/{tw/provider.ts → provider.ts} +21 -6
- package/lib/routes/yahoo/news/{tw/utils.ts → utils.ts} +24 -15
- package/lib/routes/yamap/articles.ts +62 -0
- package/lib/routes/yamap/namespace.ts +6 -0
- package/lib/routes/yande/namespace.ts +1 -1
- package/lib/routes/yande/post.ts +7 -7
- package/lib/routes/yicai/carousel.ts +48 -0
- package/lib/routes/yicai/utils.ts +23 -17
- package/lib/routes/yilinzazhi/index.ts +59 -0
- package/lib/routes/yilinzazhi/latest.ts +104 -0
- package/lib/routes/yilinzazhi/namespace.ts +8 -0
- package/lib/routes/youtube/playlist.ts +3 -2
- package/lib/routes/youtube/subscriptions.ts +1 -0
- package/lib/routes/youtube/user.ts +2 -1
- package/lib/routes/youzhiyouxing/materials.ts +18 -3
- package/lib/routes/yyets/article.ts +18 -3
- package/lib/routes/yyets/today.ts +3 -2
- package/lib/routes/yystv/docs.ts +28 -19
- package/lib/routes/zaobao/util.ts +41 -43
- package/lib/routes/zcool/discover.ts +2 -1
- package/lib/routes/zcool/top.ts +12 -8
- package/lib/routes/zcool/user.ts +3 -2
- package/lib/routes/zhihu/activities.ts +4 -2
- package/lib/routes/zhihu/answers.ts +5 -1
- package/lib/routes/zhihu/daily.ts +30 -64
- package/lib/routes/zhihu/execlib/x-zse-96-v3.ts +2 -0
- package/lib/routes/zhihu/hot.ts +56 -7
- package/lib/routes/zhihu/namespace.ts +3 -0
- package/lib/routes/zhihu/timeline.ts +6 -1
- package/lib/routes/zhihu/utils.ts +21 -7
- package/lib/routes/zhihu/zhuanlan.ts +8 -7
- package/lib/routes/zhitongcaijing/index.ts +3 -2
- package/lib/routes/zhuwang/index.ts +1 -1
- package/lib/routes/zju/cst/index.ts +2 -2
- package/lib/routes/zjut/cs/index.ts +105 -0
- package/lib/routes/zjut/jwc/index.ts +117 -0
- package/lib/routes/zjut/www/index.ts +110 -0
- package/lib/routes/zsxq/group.ts +2 -2
- package/lib/routes/zsxq/types.ts +9 -0
- package/lib/routes/zsxq/utils.ts +4 -3
- package/lib/routes.test.ts +11 -5
- package/lib/setup.test.ts +1 -1
- package/lib/types.ts +20 -0
- package/lib/utils/cache/index.ts +8 -0
- package/lib/utils/cache/redis.ts +1 -1
- package/lib/utils/camelcase-keys.spec.ts +127 -0
- package/lib/utils/camelcase-keys.ts +27 -0
- package/lib/utils/common-utils.ts +1 -0
- package/lib/utils/ofetch.ts +19 -0
- package/lib/utils/otel/metric.ts +5 -4
- package/lib/utils/otel/trace.ts +2 -2
- package/lib/utils/request-rewriter/fetch.ts +9 -2
- package/lib/views/atom.tsx +2 -2
- package/lib/views/error.tsx +3 -3
- package/lib/views/index.tsx +7 -9
- package/lib/views/json.ts +2 -2
- package/lib/views/layout.tsx +1 -1
- package/lib/views/rss.tsx +9 -2
- package/package.json +70 -66
- package/lib/routes/a9vg/a9vg.ts +0 -45
- package/lib/routes/bangumi/tv/other/followrank.ts +0 -80
- package/lib/routes/bangumi/tv/user/wish.ts +0 -62
- package/lib/routes/moduzy/index.ts +0 -80
- package/lib/routes/moduzy/namespace.ts +0 -17
- package/lib/routes/moduzy/type.ts +0 -95
- package/lib/routes/sse/lawandrules.ts +0 -68
- package/lib/routes/yahoo/news/tw/index.ts +0 -80
- package/lib/routes/yahoo/news/us/index.ts +0 -55
- package/lib/routes/zhihu/hotlist.ts +0 -72
- package/lib/routes-deprecated/anime1/anime.js +0 -25
- package/lib/routes-deprecated/anime1/search.js +0 -25
- package/lib/routes-deprecated/bjnews/news.js +0 -44
- package/lib/routes-deprecated/dykszx/news.js +0 -60
- package/lib/routes-deprecated/gamersky/ent.js +0 -89
- package/lib/routes-deprecated/gamersky/news.js +0 -34
- package/lib/routes-deprecated/geekpark/breakingnews.js +0 -25
- package/lib/routes-deprecated/hko/weather.js +0 -44
- package/lib/routes-deprecated/iplay/home.js +0 -26
- package/lib/routes-deprecated/iplay/utils.js +0 -57
- package/lib/routes-deprecated/konachan/post-popular-recent.js +0 -67
- /package/lib/routes/{bangumi/templates/online → bangumi.online/templates}/image.art +0 -0
- /package/lib/routes/{bangumi/tv → bangumi.tv}/calendar/_base.ts +0 -0
- /package/lib/routes/{bangumi/tv → bangumi.tv}/subject/utils.ts +0 -0
- /package/lib/routes/{bangumi/templates/tv → bangumi.tv/templates}/ep.art +0 -0
- /package/lib/routes/{bangumi/templates/tv → bangumi.tv/templates}/today.art +0 -0
- /package/lib/routes/{moduzy → maccms}/templates/vod.art +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { Route } from '@/types';
|
|
1
|
+
import { Route, ViewType } from '@/types';
|
|
2
2
|
import got from '@/utils/got';
|
|
3
3
|
import utils from './utils';
|
|
4
4
|
|
|
5
5
|
export const route: Route = {
|
|
6
|
-
path: '/ranking/:rid?/:day?/:arc_type?/:
|
|
6
|
+
path: '/ranking/:rid?/:day?/:arc_type?/:embed?',
|
|
7
7
|
name: '排行榜',
|
|
8
8
|
maintainers: ['DIYgod'],
|
|
9
9
|
categories: ['social-media', 'popular'],
|
|
10
|
+
view: ViewType.Videos,
|
|
10
11
|
example: '/bilibili/ranking/0/3/1',
|
|
11
12
|
parameters: {
|
|
12
13
|
rid: {
|
|
@@ -103,9 +104,7 @@ export const route: Route = {
|
|
|
103
104
|
},
|
|
104
105
|
],
|
|
105
106
|
},
|
|
106
|
-
|
|
107
|
-
description: '默认为开启内嵌视频, 任意值为关闭',
|
|
108
|
-
},
|
|
107
|
+
embed: '默认为开启内嵌视频, 任意值为关闭',
|
|
109
108
|
},
|
|
110
109
|
handler,
|
|
111
110
|
};
|
|
@@ -114,7 +113,7 @@ async function handler(ctx) {
|
|
|
114
113
|
const rid = ctx.req.param('rid') || '0';
|
|
115
114
|
const day = ctx.req.param('day') || '3';
|
|
116
115
|
const arc_type = ctx.req.param('arc_type') || '1';
|
|
117
|
-
const
|
|
116
|
+
const embed = !ctx.req.param('embed');
|
|
118
117
|
const arc_type1 = arc_type === '0' ? '全部投稿' : '近期投稿';
|
|
119
118
|
const rid_1 = ['0', '1', '168', '3', '129', '4', '36', '188', '160', '119', '155', '5', '181'];
|
|
120
119
|
const rid_2 = ['全站', '动画', '国创相关', '音乐', '舞蹈', '游戏', '科技', '数码', '生活', '鬼畜', '时尚', '娱乐', '影视'];
|
|
@@ -143,7 +142,7 @@ async function handler(ctx) {
|
|
|
143
142
|
link: `https://www.bilibili.com/ranking/all/${rid}/0/${day}`,
|
|
144
143
|
item: list.map((item) => ({
|
|
145
144
|
title: item.title,
|
|
146
|
-
description:
|
|
145
|
+
description: utils.renderUGCDescription(embed, item.pic, item.description || item.title, item.aid, undefined, item.bvid),
|
|
147
146
|
pubDate: item.create && new Date(item.create).toUTCString(),
|
|
148
147
|
author: item.author,
|
|
149
148
|
link: !item.create || (new Date(item.create) / 1000 > utils.bvidTime && item.bvid) ? `https://www.bilibili.com/video/${item.bvid}` : `https://www.bilibili.com/video/av${item.aid}`,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Route } from '@/types';
|
|
1
|
+
import { Route, ViewType } from '@/types';
|
|
2
2
|
import got from '@/utils/got';
|
|
3
3
|
|
|
4
4
|
export const route: Route = {
|
|
5
5
|
path: '/readlist/:listid',
|
|
6
|
-
categories: ['social-media'],
|
|
6
|
+
categories: ['social-media', 'popular'],
|
|
7
|
+
view: ViewType.Articles,
|
|
7
8
|
example: '/bilibili/readlist/25611',
|
|
8
9
|
parameters: { listid: '文集 id, 可在专栏文集 URL 中找到' },
|
|
9
10
|
features: {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{{ if embed }}
|
|
2
|
+
{{ if ugc }}
|
|
3
|
+
<iframe width="640" height="360" src="https://www.bilibili.com/blackboard/html5mobileplayer.html?aid={{ aid }}&cid={{ cid }}&bvid={{ bvid }}" frameborder="0" allowfullscreen></iframe>
|
|
4
|
+
{{ /if }}
|
|
5
|
+
{{ if ogv }}
|
|
6
|
+
<iframe width="640" height="360" src="https://www.bilibili.com/blackboard/html5mobileplayer.html?seasonId={{ seasonId }}&episodeId={{ episodeId }}" frameborder="0" allowfullscreen></iframe>
|
|
7
|
+
{{ /if }}
|
|
8
|
+
<br>
|
|
9
|
+
{{ /if }}
|
|
10
|
+
<img src="{{ img }}">
|
|
11
|
+
<br>
|
|
12
|
+
{{@ description }}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface ResultResponse<Result> {
|
|
2
|
+
result: Result;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 番剧信息
|
|
7
|
+
*
|
|
8
|
+
* @interface MediaResult
|
|
9
|
+
*
|
|
10
|
+
* @property {string} cover - 封面。
|
|
11
|
+
* @property {string} evaluate - 摘要。
|
|
12
|
+
* @property {number} media_id - 媒体 ID。
|
|
13
|
+
* @property {number} season_id - 季度 ID。
|
|
14
|
+
* @property {string} share_url - 分享 URL。此属性是注入的。
|
|
15
|
+
* @property {string} title - 标题。
|
|
16
|
+
*/
|
|
17
|
+
export interface MediaResult {
|
|
18
|
+
cover: string;
|
|
19
|
+
evaluate: string;
|
|
20
|
+
media_id: number;
|
|
21
|
+
season_id: number;
|
|
22
|
+
share_url: string; // injected
|
|
23
|
+
title: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface SeasonResult {
|
|
27
|
+
main_section: SectionResult;
|
|
28
|
+
section: SectionResult[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface SectionResult {
|
|
32
|
+
episodes: EpisodeResult[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 番剧剧集信息
|
|
37
|
+
*
|
|
38
|
+
* @interface EpisodeResult
|
|
39
|
+
*
|
|
40
|
+
* @property {string} cover - 封面。
|
|
41
|
+
* @property {number} id - 剧集 ID。
|
|
42
|
+
* @property {string} long_title - 完整标题。
|
|
43
|
+
* @property {string} share_url - 分享 URL。
|
|
44
|
+
* @property {string} title - 短标题。
|
|
45
|
+
*/
|
|
46
|
+
export interface EpisodeResult {
|
|
47
|
+
cover: string;
|
|
48
|
+
id: number;
|
|
49
|
+
long_title: string;
|
|
50
|
+
share_url: string;
|
|
51
|
+
title: string;
|
|
52
|
+
}
|
|
@@ -10,10 +10,10 @@ const notFoundData = {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export const route: Route = {
|
|
13
|
-
path: '/user/channel/:uid/:sid/:
|
|
13
|
+
path: '/user/channel/:uid/:sid/:embed?',
|
|
14
14
|
categories: ['social-media'],
|
|
15
15
|
example: '/bilibili/user/channel/2267573/396050',
|
|
16
|
-
parameters: { uid: '用户 id, 可在 UP 主主页中找到', sid: '频道 id, 可在频道的 URL 中找到',
|
|
16
|
+
parameters: { uid: '用户 id, 可在 UP 主主页中找到', sid: '频道 id, 可在频道的 URL 中找到', embed: '默认为开启内嵌视频, 任意值为关闭' },
|
|
17
17
|
features: {
|
|
18
18
|
requireConfig: false,
|
|
19
19
|
requirePuppeteer: false,
|
|
@@ -30,7 +30,7 @@ export const route: Route = {
|
|
|
30
30
|
async function handler(ctx) {
|
|
31
31
|
const uid = Number.parseInt(ctx.req.param('uid'));
|
|
32
32
|
const sid = Number.parseInt(ctx.req.param('sid'));
|
|
33
|
-
const
|
|
33
|
+
const embed = !ctx.req.param('embed');
|
|
34
34
|
const limit = ctx.req.query('limit') ?? 25;
|
|
35
35
|
|
|
36
36
|
const link = `https://space.bilibili.com/${uid}/channel/seriesdetail?sid=${sid}`;
|
|
@@ -70,19 +70,12 @@ async function handler(ctx) {
|
|
|
70
70
|
description: `${userName} 的 bilibili 频道`,
|
|
71
71
|
logo: face,
|
|
72
72
|
icon: face,
|
|
73
|
-
item: data.archives.map((item) => {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
title: item.title,
|
|
81
|
-
description: descList.join('<br>'),
|
|
82
|
-
pubDate: parseDate(item.pubdate, 'X'),
|
|
83
|
-
link: item.pubdate > utils.bvidTime && item.bvid ? `https://www.bilibili.com/video/${item.bvid}` : `https://www.bilibili.com/video/av${item.aid}`,
|
|
84
|
-
author: userName,
|
|
85
|
-
};
|
|
86
|
-
}),
|
|
73
|
+
item: data.archives.map((item) => ({
|
|
74
|
+
title: item.title,
|
|
75
|
+
description: utils.renderUGCDescription(embed, item.pic, '', item.aid, undefined, item.bvid),
|
|
76
|
+
pubDate: parseDate(item.pubdate, 'X'),
|
|
77
|
+
link: item.pubdate > utils.bvidTime && item.bvid ? `https://www.bilibili.com/video/${item.bvid}` : `https://www.bilibili.com/video/av${item.aid}`,
|
|
78
|
+
author: userName,
|
|
79
|
+
})),
|
|
87
80
|
};
|
|
88
81
|
}
|
|
@@ -3,20 +3,19 @@ import got from '@/utils/got';
|
|
|
3
3
|
import cache from './cache';
|
|
4
4
|
import utils from './utils';
|
|
5
5
|
import { parseDate } from '@/utils/parse-date';
|
|
6
|
-
import { queryToBoolean } from '@/utils/readable-social';
|
|
7
6
|
|
|
8
7
|
const notFoundData = {
|
|
9
8
|
title: '此 bilibili 频道不存在',
|
|
10
9
|
};
|
|
11
10
|
|
|
12
11
|
export const route: Route = {
|
|
13
|
-
path: '/user/collection/:uid/:sid/:
|
|
12
|
+
path: '/user/collection/:uid/:sid/:embed?/:sortReverse?/:page?',
|
|
14
13
|
categories: ['social-media'],
|
|
15
14
|
example: '/bilibili/user/collection/245645656/529166',
|
|
16
15
|
parameters: {
|
|
17
16
|
uid: '用户 id, 可在 UP 主主页中找到',
|
|
18
17
|
sid: '合集 id, 可在合集页面的 URL 中找到',
|
|
19
|
-
|
|
18
|
+
embed: '默认为开启内嵌视频, 任意值为关闭',
|
|
20
19
|
sortReverse: '默认:默认排序 1:升序排序',
|
|
21
20
|
page: '页码, 默认1',
|
|
22
21
|
},
|
|
@@ -36,7 +35,7 @@ export const route: Route = {
|
|
|
36
35
|
async function handler(ctx) {
|
|
37
36
|
const uid = Number.parseInt(ctx.req.param('uid'));
|
|
38
37
|
const sid = Number.parseInt(ctx.req.param('sid'));
|
|
39
|
-
const
|
|
38
|
+
const embed = !ctx.req.param('embed');
|
|
40
39
|
const sortReverse = Number.parseInt(ctx.req.param('sortReverse')) === 1;
|
|
41
40
|
const page = ctx.req.param('page') ? Number.parseInt(ctx.req.param('page')) : 1;
|
|
42
41
|
const limit = ctx.req.query('limit') ?? 25;
|
|
@@ -62,19 +61,12 @@ async function handler(ctx) {
|
|
|
62
61
|
description: `${userName} 的 bilibili 合集`,
|
|
63
62
|
logo: face,
|
|
64
63
|
icon: face,
|
|
65
|
-
item: data.archives.map((item) => {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
title: item.title,
|
|
73
|
-
description: descList.join('<br>'),
|
|
74
|
-
pubDate: parseDate(item.pubdate, 'X'),
|
|
75
|
-
link: item.pubdate > utils.bvidTime && item.bvid ? `https://www.bilibili.com/video/${item.bvid}` : `https://www.bilibili.com/video/av${item.aid}`,
|
|
76
|
-
author: userName,
|
|
77
|
-
};
|
|
78
|
-
}),
|
|
64
|
+
item: data.archives.map((item) => ({
|
|
65
|
+
title: item.title,
|
|
66
|
+
description: utils.renderUGCDescription(embed, item.pic, '', item.aid, undefined, item.bvid),
|
|
67
|
+
pubDate: parseDate(item.pubdate, 'X'),
|
|
68
|
+
link: item.pubdate > utils.bvidTime && item.bvid ? `https://www.bilibili.com/video/${item.bvid}` : `https://www.bilibili.com/video/av${item.aid}`,
|
|
69
|
+
author: userName,
|
|
70
|
+
})),
|
|
79
71
|
};
|
|
80
72
|
}
|
|
@@ -5,10 +5,10 @@ import utils from './utils';
|
|
|
5
5
|
import { config } from '@/config';
|
|
6
6
|
|
|
7
7
|
export const route: Route = {
|
|
8
|
-
path: '/user/fav/:uid/:
|
|
8
|
+
path: '/user/fav/:uid/:embed?',
|
|
9
9
|
categories: ['social-media'],
|
|
10
10
|
example: '/bilibili/user/fav/2267573',
|
|
11
|
-
parameters: { uid: '用户 id, 可在 UP 主主页中找到',
|
|
11
|
+
parameters: { uid: '用户 id, 可在 UP 主主页中找到', embed: '默认为开启内嵌视频, 任意值为关闭' },
|
|
12
12
|
features: {
|
|
13
13
|
requireConfig: false,
|
|
14
14
|
requirePuppeteer: false,
|
|
@@ -30,7 +30,7 @@ export const route: Route = {
|
|
|
30
30
|
|
|
31
31
|
async function handler(ctx) {
|
|
32
32
|
const uid = ctx.req.param('uid');
|
|
33
|
-
const
|
|
33
|
+
const embed = !ctx.req.param('embed');
|
|
34
34
|
const name = await cache.getUsernameFromUID(uid);
|
|
35
35
|
|
|
36
36
|
const response = await got({
|
|
@@ -53,7 +53,7 @@ async function handler(ctx) {
|
|
|
53
53
|
data.data.archives &&
|
|
54
54
|
data.data.archives.map((item) => ({
|
|
55
55
|
title: item.title,
|
|
56
|
-
description:
|
|
56
|
+
description: utils.renderUGCDescription(embed, item.pic, item.desc, item.aid, undefined, item.bvid),
|
|
57
57
|
pubDate: new Date(item.fav_at * 1000).toUTCString(),
|
|
58
58
|
link: item.fav_at > utils.bvidTime && item.bvid ? `https://www.bilibili.com/video/${item.bvid}` : `https://www.bilibili.com/video/av${item.aid}`,
|
|
59
59
|
author: item.owner.name,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { getCurrentPath } from '@/utils/helpers';
|
|
2
|
+
const __dirname = getCurrentPath(import.meta.url);
|
|
3
|
+
|
|
1
4
|
import { config } from '@/config';
|
|
2
5
|
import md5 from '@/utils/md5';
|
|
6
|
+
import ofetch from '@/utils/ofetch';
|
|
7
|
+
import { art } from '@/utils/render';
|
|
3
8
|
import CryptoJS from 'crypto-js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return `<iframe src="https://www.bilibili.com/blackboard/html5mobileplayer.html?${bvid ? `bvid=${bvid}` : `aid=${aid}`}${
|
|
7
|
-
page ? `&page=${page}` : ''
|
|
8
|
-
}&high_quality=1&autoplay=0" width="650" height="477" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>`;
|
|
9
|
-
}
|
|
9
|
+
import path from 'node:path';
|
|
10
|
+
import { MediaResult, ResultResponse, SeasonResult } from './types';
|
|
10
11
|
|
|
11
12
|
// a
|
|
12
13
|
function randomHexStr(length) {
|
|
@@ -66,6 +67,10 @@ function hexsign(e) {
|
|
|
66
67
|
return o;
|
|
67
68
|
}
|
|
68
69
|
|
|
70
|
+
function addRenderData(params, renderData) {
|
|
71
|
+
return `${params}&w_webid=${encodeURIComponent(renderData)}`;
|
|
72
|
+
}
|
|
73
|
+
|
|
69
74
|
function addWbiVerifyInfo(params, wbiVerifyString) {
|
|
70
75
|
const searchParams = new URLSearchParams(params);
|
|
71
76
|
searchParams.sort();
|
|
@@ -91,8 +96,8 @@ function getDmImgList() {
|
|
|
91
96
|
const dmImgList = JSON.parse(config.bilibili.dmImgList);
|
|
92
97
|
return JSON.stringify([dmImgList[Math.floor(Math.random() * dmImgList.length)]]);
|
|
93
98
|
}
|
|
94
|
-
const x = Math.max(generateGaussianInteger(
|
|
95
|
-
const y = Math.max(generateGaussianInteger(
|
|
99
|
+
const x = Math.max(generateGaussianInteger(1245, 5), 0);
|
|
100
|
+
const y = Math.max(generateGaussianInteger(1285, 5), 0);
|
|
96
101
|
const path = [
|
|
97
102
|
{
|
|
98
103
|
x: 3 * x + 2 * y,
|
|
@@ -105,21 +110,207 @@ function getDmImgList() {
|
|
|
105
110
|
return JSON.stringify(path);
|
|
106
111
|
}
|
|
107
112
|
|
|
108
|
-
function
|
|
113
|
+
function getDmImgInter() {
|
|
114
|
+
if (config.bilibili.dmImgInter !== undefined) {
|
|
115
|
+
const dmImgInter = JSON.parse(config.bilibili.dmImgInter);
|
|
116
|
+
return JSON.stringify([dmImgInter[Math.floor(Math.random() * dmImgInter.length)]]);
|
|
117
|
+
}
|
|
118
|
+
const p1 = getDmImgInterWh(274, 601);
|
|
119
|
+
const s1 = getDmImgInterOf(134, 30);
|
|
120
|
+
const p2 = getDmImgInterWh(332, 64);
|
|
121
|
+
const s2 = getDmImgInterOf(1101, 338);
|
|
122
|
+
const of = getDmImgInterOf(0, 0);
|
|
123
|
+
const wh = getDmImgInterWh(1245, 1285);
|
|
124
|
+
const ds = [
|
|
125
|
+
{
|
|
126
|
+
t: getDmImgInterT('div'),
|
|
127
|
+
c: getDmImgInterC('clearfix g-search search-container'),
|
|
128
|
+
p: [p1[0], p1[2], p1[1]],
|
|
129
|
+
s: [s1[2], s1[0], s1[1]],
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
t: getDmImgInterT('div'),
|
|
133
|
+
c: getDmImgInterC('wrapper'),
|
|
134
|
+
p: [p2[0], p2[2], p2[1]],
|
|
135
|
+
s: [s2[2], s2[0], s2[1]],
|
|
136
|
+
},
|
|
137
|
+
];
|
|
138
|
+
return JSON.stringify({ ds, wh, of });
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function getDmImgInterT(tag: string) {
|
|
142
|
+
return {
|
|
143
|
+
a: 4,
|
|
144
|
+
article: 29,
|
|
145
|
+
button: 7,
|
|
146
|
+
div: 2,
|
|
147
|
+
em: 27,
|
|
148
|
+
form: 17,
|
|
149
|
+
h1: 11,
|
|
150
|
+
h2: 12,
|
|
151
|
+
h3: 13,
|
|
152
|
+
h4: 14,
|
|
153
|
+
h5: 15,
|
|
154
|
+
h6: 16,
|
|
155
|
+
img: 5,
|
|
156
|
+
input: 6,
|
|
157
|
+
label: 25,
|
|
158
|
+
li: 10,
|
|
159
|
+
ol: 9,
|
|
160
|
+
option: 20,
|
|
161
|
+
p: 3,
|
|
162
|
+
section: 28,
|
|
163
|
+
select: 19,
|
|
164
|
+
span: 1,
|
|
165
|
+
strong: 26,
|
|
166
|
+
table: 21,
|
|
167
|
+
td: 23,
|
|
168
|
+
textarea: 18,
|
|
169
|
+
th: 24,
|
|
170
|
+
tr: 22,
|
|
171
|
+
ul: 8,
|
|
172
|
+
}[tag];
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function getDmImgInterC(className: string) {
|
|
176
|
+
return Buffer.from(className).toString('base64').slice(0, -2);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function getDmImgInterOf(top: number, left: number) {
|
|
180
|
+
const seed = Math.floor(514 * Math.random());
|
|
181
|
+
return [3 * top + 2 * left + seed, 4 * top - 4 * left + 2 * seed, seed];
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function getDmImgInterWh(width: number, height: number) {
|
|
185
|
+
const seed = Math.floor(114 * Math.random());
|
|
186
|
+
return [2 * width + 2 * height + 3 * seed, 4 * width - height + seed, seed];
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
function addDmVerifyInfo(params: string, dmImgList: string) {
|
|
109
190
|
const dmImgStr = Buffer.from('no webgl').toString('base64').slice(0, -2);
|
|
110
191
|
const dmCoverImgStr = Buffer.from('no webgl').toString('base64').slice(0, -2);
|
|
111
192
|
return `${params}&dm_img_list=${dmImgList}&dm_img_str=${dmImgStr}&dm_cover_img_str=${dmCoverImgStr}`;
|
|
112
193
|
}
|
|
113
194
|
|
|
195
|
+
function addDmVerifyInfoWithInter(params: string, dmImgList: string, dmImgInter: string) {
|
|
196
|
+
return `${addDmVerifyInfo(params, dmImgList)}&dm_img_inter=${dmImgInter}`;
|
|
197
|
+
}
|
|
198
|
+
|
|
114
199
|
const bvidTime = 1_589_990_400;
|
|
115
200
|
|
|
201
|
+
/**
|
|
202
|
+
* 获取番剧信息并缓存
|
|
203
|
+
*
|
|
204
|
+
* @param {string} id - 番剧 ID。
|
|
205
|
+
* @param cache - 缓存 module。
|
|
206
|
+
* @returns {Promise<MediaResult>} 番剧信息。
|
|
207
|
+
*/
|
|
208
|
+
export const getBangumi = (id: string, cache): Promise<MediaResult> =>
|
|
209
|
+
cache.tryGet(
|
|
210
|
+
`bilibili:getBangumi:${id}`,
|
|
211
|
+
async () => {
|
|
212
|
+
const res = await ofetch<ResultResponse<MediaResult>>('https://api.bilibili.com/pgc/view/web/media', {
|
|
213
|
+
query: {
|
|
214
|
+
media_id: id,
|
|
215
|
+
},
|
|
216
|
+
});
|
|
217
|
+
if (res.result.share_url === undefined) {
|
|
218
|
+
// reference: https://api.bilibili.com/pgc/review/user?media_id=${id}
|
|
219
|
+
res.result.share_url = `https://www.bilibili.com/bangumi/media/md${res.result.media_id}`;
|
|
220
|
+
}
|
|
221
|
+
return res.result;
|
|
222
|
+
},
|
|
223
|
+
config.cache.routeExpire,
|
|
224
|
+
false
|
|
225
|
+
) as Promise<MediaResult>;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* 获取番剧分集信息并缓存
|
|
229
|
+
*
|
|
230
|
+
* @param {string} id - 番剧 ID。
|
|
231
|
+
* @param cache - 缓存 module。
|
|
232
|
+
* @returns {Promise<SeasonResult>} 番剧分集信息。
|
|
233
|
+
*/
|
|
234
|
+
export const getBangumiItems = (id: string, cache): Promise<SeasonResult> =>
|
|
235
|
+
cache.tryGet(
|
|
236
|
+
`bilibili:getBangumiItems:${id}`,
|
|
237
|
+
async () => {
|
|
238
|
+
const res = await ofetch<ResultResponse<SeasonResult>>('https://api.bilibili.com/pgc/web/season/section', {
|
|
239
|
+
query: {
|
|
240
|
+
season_id: id,
|
|
241
|
+
},
|
|
242
|
+
});
|
|
243
|
+
return res.result;
|
|
244
|
+
},
|
|
245
|
+
config.cache.routeExpire,
|
|
246
|
+
false
|
|
247
|
+
) as Promise<SeasonResult>;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* 使用模板渲染 UGC(用户生成内容)描述。
|
|
251
|
+
*
|
|
252
|
+
* @param {boolean} embed - 是否嵌入视频。
|
|
253
|
+
* @param {string} img - 要包含在描述中的图片 URL。
|
|
254
|
+
* @param {string} description - UGC 的文本描述。
|
|
255
|
+
* @param {string} [aid] - 可选。UGC 的 aid。
|
|
256
|
+
* @param {string} [cid] - 可选。UGC 的 cid。
|
|
257
|
+
* @param {string} [bvid] - 可选。UGC 的 bvid。
|
|
258
|
+
* @returns {string} 渲染的 UGC 描述。
|
|
259
|
+
*
|
|
260
|
+
* @see https://player.bilibili.com/ 获取更多信息。
|
|
261
|
+
*/
|
|
262
|
+
export const renderUGCDescription = (embed: boolean, img: string, description: string, aid?: string, cid?: string, bvid?: string): string => {
|
|
263
|
+
// docs: https://player.bilibili.com/
|
|
264
|
+
const rendered = art(path.join(__dirname, 'templates/description.art'), {
|
|
265
|
+
embed,
|
|
266
|
+
ugc: true,
|
|
267
|
+
aid,
|
|
268
|
+
cid,
|
|
269
|
+
bvid,
|
|
270
|
+
img: img.replace('http://', 'https://'),
|
|
271
|
+
description,
|
|
272
|
+
});
|
|
273
|
+
return rendered;
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* 使用模板渲染 OGV(原创视频)描述。
|
|
278
|
+
*
|
|
279
|
+
* @param {boolean} embed - 是否嵌入视频。
|
|
280
|
+
* @param {string} img - 要包含在描述中的图片 URL。
|
|
281
|
+
* @param {string} description - OGV 的文本描述。
|
|
282
|
+
* @param {string} [seasonId] - 可选。OGV 的季 ID。
|
|
283
|
+
* @param {string} [episodeId] - 可选。OGV 的集 ID。
|
|
284
|
+
* @returns {string} 渲染的 OGV 描述。
|
|
285
|
+
*
|
|
286
|
+
* @see https://player.bilibili.com/ 获取更多信息。
|
|
287
|
+
*/
|
|
288
|
+
export const renderOGVDescription = (embed: boolean, img: string, description: string, seasonId?: string, episodeId?: string): string => {
|
|
289
|
+
// docs: https://player.bilibili.com/
|
|
290
|
+
const rendered = art(path.join(__dirname, 'templates/description.art'), {
|
|
291
|
+
embed,
|
|
292
|
+
ogv: true,
|
|
293
|
+
seasonId,
|
|
294
|
+
episodeId,
|
|
295
|
+
img: img.replace('http://', 'https://'),
|
|
296
|
+
description,
|
|
297
|
+
});
|
|
298
|
+
return rendered;
|
|
299
|
+
};
|
|
300
|
+
|
|
116
301
|
export default {
|
|
117
|
-
iframe,
|
|
118
302
|
lsid,
|
|
119
303
|
_uuid,
|
|
120
304
|
hexsign,
|
|
121
305
|
addWbiVerifyInfo,
|
|
122
306
|
getDmImgList,
|
|
307
|
+
getDmImgInter,
|
|
123
308
|
addDmVerifyInfo,
|
|
309
|
+
addDmVerifyInfoWithInter,
|
|
124
310
|
bvidTime,
|
|
311
|
+
addRenderData,
|
|
312
|
+
getBangumi,
|
|
313
|
+
getBangumiItems,
|
|
314
|
+
renderUGCDescription,
|
|
315
|
+
renderOGVDescription,
|
|
125
316
|
};
|
|
@@ -5,16 +5,21 @@ import utils from './utils';
|
|
|
5
5
|
import { parseDate } from '@/utils/parse-date';
|
|
6
6
|
|
|
7
7
|
export const route: Route = {
|
|
8
|
-
path: '/user/video-all/:uid/:
|
|
8
|
+
path: '/user/video-all/:uid/:embed?',
|
|
9
9
|
name: '用户所有视频',
|
|
10
10
|
maintainers: [],
|
|
11
11
|
handler,
|
|
12
|
+
example: '/bilibili/user/video-all/2267573',
|
|
13
|
+
parameters: {
|
|
14
|
+
uid: '用户 id, 可在 UP 主主页中找到',
|
|
15
|
+
embed: '默认为开启内嵌视频, 任意值为关闭',
|
|
16
|
+
},
|
|
12
17
|
categories: ['social-media'],
|
|
13
18
|
};
|
|
14
19
|
|
|
15
20
|
async function handler(ctx) {
|
|
16
21
|
const uid = ctx.req.param('uid');
|
|
17
|
-
const
|
|
22
|
+
const embed = !ctx.req.param('embed');
|
|
18
23
|
const cookie = await cache.getCookie();
|
|
19
24
|
const wbiVerifyString = await cache.getWbiVerifyString();
|
|
20
25
|
const dmImgList = utils.getDmImgList();
|
|
@@ -74,7 +79,7 @@ async function handler(ctx) {
|
|
|
74
79
|
icon: face,
|
|
75
80
|
item: vlist.map((item) => ({
|
|
76
81
|
title: item.title,
|
|
77
|
-
description:
|
|
82
|
+
description: utils.renderUGCDescription(embed, item.pic, item.description, item.aid, undefined, item.bvid),
|
|
78
83
|
pubDate: parseDate(item.created, 'X'),
|
|
79
84
|
link: item.created > utils.bvidTime && item.bvid ? `https://www.bilibili.com/video/${item.bvid}` : `https://www.bilibili.com/video/av${item.aid}`,
|
|
80
85
|
author: name,
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { Route } from '@/types';
|
|
1
|
+
import { Route, ViewType } from '@/types';
|
|
2
2
|
import got from '@/utils/got';
|
|
3
3
|
import cache from './cache';
|
|
4
4
|
import utils from './utils';
|
|
5
5
|
import logger from '@/utils/logger';
|
|
6
6
|
|
|
7
7
|
export const route: Route = {
|
|
8
|
-
path: '/user/video/:uid/:
|
|
8
|
+
path: '/user/video/:uid/:embed?',
|
|
9
9
|
categories: ['social-media', 'popular'],
|
|
10
|
+
view: ViewType.Videos,
|
|
10
11
|
example: '/bilibili/user/video/2267573',
|
|
11
|
-
parameters: { uid: '用户 id, 可在 UP 主主页中找到',
|
|
12
|
+
parameters: { uid: '用户 id, 可在 UP 主主页中找到', embed: '默认为开启内嵌视频, 任意值为关闭' },
|
|
12
13
|
features: {
|
|
13
14
|
requireConfig: false,
|
|
14
15
|
requirePuppeteer: false,
|
|
@@ -24,28 +25,27 @@ export const route: Route = {
|
|
|
24
25
|
},
|
|
25
26
|
],
|
|
26
27
|
name: 'UP 主投稿',
|
|
27
|
-
maintainers: ['DIYgod'],
|
|
28
|
+
maintainers: ['DIYgod', 'Konano', 'pseudoyu'],
|
|
28
29
|
handler,
|
|
29
30
|
};
|
|
30
31
|
|
|
31
32
|
async function handler(ctx) {
|
|
32
33
|
const uid = ctx.req.param('uid');
|
|
33
|
-
const
|
|
34
|
+
const embed = !ctx.req.param('embed');
|
|
34
35
|
const cookie = await cache.getCookie();
|
|
35
36
|
const wbiVerifyString = await cache.getWbiVerifyString();
|
|
36
37
|
const dmImgList = utils.getDmImgList();
|
|
38
|
+
const dmImgInter = utils.getDmImgInter();
|
|
39
|
+
const renderData = await cache.getRenderData(uid);
|
|
37
40
|
const [name, face] = await cache.getUsernameAndFaceFromUID(uid);
|
|
38
41
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
// },
|
|
44
|
-
// });
|
|
45
|
-
const params = utils.addWbiVerifyInfo(utils.addDmVerifyInfo(`mid=${uid}&ps=30&tid=0&pn=1&keyword=&order=pubdate&platform=web&web_location=1550101&order_avoided=true`, dmImgList), wbiVerifyString);
|
|
42
|
+
const params = utils.addWbiVerifyInfo(
|
|
43
|
+
utils.addRenderData(utils.addDmVerifyInfoWithInter(`mid=${uid}&ps=30&tid=0&pn=1&keyword=&order=pubdate&platform=web&web_location=1550101&order_avoided=true`, dmImgList, dmImgInter), renderData),
|
|
44
|
+
wbiVerifyString
|
|
45
|
+
);
|
|
46
46
|
const response = await got(`https://api.bilibili.com/x/space/wbi/arc/search?${params}`, {
|
|
47
47
|
headers: {
|
|
48
|
-
Referer: `https://space.bilibili.com/${uid}/video?tid=0&
|
|
48
|
+
Referer: `https://space.bilibili.com/${uid}/video?tid=0&pn=1&keyword=&order=pubdate`,
|
|
49
49
|
Cookie: cookie,
|
|
50
50
|
},
|
|
51
51
|
});
|
|
@@ -59,6 +59,7 @@ async function handler(ctx) {
|
|
|
59
59
|
title: `${name} 的 bilibili 空间`,
|
|
60
60
|
link: `https://space.bilibili.com/${uid}`,
|
|
61
61
|
description: `${name} 的 bilibili 空间`,
|
|
62
|
+
image: face,
|
|
62
63
|
logo: face,
|
|
63
64
|
icon: face,
|
|
64
65
|
item:
|
|
@@ -67,7 +68,7 @@ async function handler(ctx) {
|
|
|
67
68
|
data.data.list.vlist &&
|
|
68
69
|
data.data.list.vlist.map((item) => ({
|
|
69
70
|
title: item.title,
|
|
70
|
-
description:
|
|
71
|
+
description: utils.renderUGCDescription(embed, item.pic, item.description, item.aid, undefined, item.bvid),
|
|
71
72
|
pubDate: new Date(item.created * 1000).toUTCString(),
|
|
72
73
|
link: item.created > utils.bvidTime && item.bvid ? `https://www.bilibili.com/video/${item.bvid}` : `https://www.bilibili.com/video/av${item.aid}`,
|
|
73
74
|
author: name,
|