rsshub 1.0.0-master.d326b33 → 1.0.0-master.d32a51c

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.
Files changed (1217) hide show
  1. package/lib/assets/logo.svg +1 -0
  2. package/lib/config.ts +69 -1
  3. package/lib/errors/index.test.ts +15 -5
  4. package/lib/errors/index.tsx +3 -2
  5. package/lib/errors/types/captcha.ts +5 -0
  6. package/lib/index.ts +48 -15
  7. package/lib/middleware/cache.ts +4 -0
  8. package/lib/middleware/debug.ts +6 -4
  9. package/lib/middleware/header.test.ts +1 -0
  10. package/lib/middleware/header.ts +6 -0
  11. package/lib/middleware/parameter.ts +1 -1
  12. package/lib/middleware/template.test.ts +8 -0
  13. package/lib/middleware/template.tsx +5 -0
  14. package/lib/registry.test.ts +24 -1
  15. package/lib/registry.ts +111 -9
  16. package/lib/router.js +1 -7
  17. package/lib/routes/10000link/info.ts +1 -1
  18. package/lib/routes/121/namespace.ts +9 -0
  19. package/lib/routes/121/templates/description.art +17 -0
  20. package/lib/routes/121/weather-live.ts +104 -0
  21. package/lib/routes/141jav/index.ts +3 -0
  22. package/lib/routes/141ppv/index.ts +3 -0
  23. package/lib/routes/163/news/rank.ts +1 -1
  24. package/lib/routes/18comic/album.ts +60 -64
  25. package/lib/routes/18comic/blogs.ts +1 -0
  26. package/lib/routes/18comic/index.ts +1 -0
  27. package/lib/routes/18comic/search.ts +54 -4
  28. package/lib/routes/18comic/utils.ts +70 -1
  29. package/lib/routes/199it/index.ts +1 -1
  30. package/lib/routes/2048/index.ts +1 -0
  31. package/lib/routes/21caijing/channel.ts +1 -1
  32. package/lib/routes/30secondsofcode/utils.ts +0 -1
  33. package/lib/routes/36kr/hot-list.ts +1 -1
  34. package/lib/routes/36kr/index.ts +1 -1
  35. package/lib/routes/3dmgame/news-center.ts +1 -1
  36. package/lib/routes/500px/tribe-set.ts +1 -1
  37. package/lib/routes/51cto/utils.ts +1 -1
  38. package/lib/routes/6park/index.ts +1 -1
  39. package/lib/routes/6v123/index.ts +487 -0
  40. package/lib/routes/6v123/namespace.ts +1 -0
  41. package/lib/routes/7mmtv/index.ts +1 -0
  42. package/lib/routes/8kcos/cat.ts +3 -0
  43. package/lib/routes/8kcos/latest.ts +1 -0
  44. package/lib/routes/8kcos/tag.ts +1 -0
  45. package/lib/routes/91porn/author.ts +1 -0
  46. package/lib/routes/91porn/index.ts +1 -0
  47. package/lib/routes/95mm/category.ts +1 -0
  48. package/lib/routes/95mm/tab.ts +1 -0
  49. package/lib/routes/95mm/tag.ts +1 -0
  50. package/lib/routes/aa1/60s.ts +189 -0
  51. package/lib/routes/aa1/namespace.ts +9 -0
  52. package/lib/routes/abc/index.ts +1 -1
  53. package/lib/routes/abskoop/index.ts +3 -0
  54. package/lib/routes/abskoop/nsfw.ts +3 -0
  55. package/lib/routes/acfun/article.ts +1 -1
  56. package/lib/routes/acfun/bangumi.ts +1 -1
  57. package/lib/routes/acfun/video.ts +1 -1
  58. package/lib/routes/acgvinyl/namespace.ts +6 -0
  59. package/lib/routes/acgvinyl/news.ts +86 -0
  60. package/lib/routes/aeon/category.ts +1 -1
  61. package/lib/routes/aeon/type.ts +1 -1
  62. package/lib/routes/agefans/detail.ts +1 -1
  63. package/lib/routes/agirls/topic-list.ts +1 -1
  64. package/lib/routes/agirls/topic.ts +1 -1
  65. package/lib/routes/agirls/z-index.ts +1 -1
  66. package/lib/routes/aibase/daily.ts +110 -0
  67. package/lib/routes/aibase/discover.ts +1 -1
  68. package/lib/routes/aibase/news.ts +1 -1
  69. package/lib/routes/aibase/topic.ts +1 -1
  70. package/lib/routes/aibase/util.ts +3 -0
  71. package/lib/routes/ainvest/news.ts +1 -1
  72. package/lib/routes/ajmide/index.ts +1 -1
  73. package/lib/routes/aliresearch/information.ts +1 -1
  74. package/lib/routes/aliyun/database-month.ts +1 -1
  75. package/lib/routes/ally/rail.ts +1 -1
  76. package/lib/routes/amazfitwatchfaces/index.ts +1 -2
  77. package/lib/routes/android/security-bulletin.ts +61 -0
  78. package/lib/routes/anthropic/news.ts +13 -11
  79. package/lib/routes/anthropic/research.ts +112 -0
  80. package/lib/routes/apnews/mobile-api.ts +1 -1
  81. package/lib/routes/apnews/sitemap.ts +1 -1
  82. package/lib/routes/apnews/topics.ts +2 -1
  83. package/lib/routes/apnews/utils.ts +1 -1
  84. package/lib/routes/app-sales/index.ts +200 -0
  85. package/lib/routes/app-sales/mostwanted.ts +194 -0
  86. package/lib/routes/app-sales/namespace.ts +9 -0
  87. package/lib/routes/app-sales/templates/description.art +120 -0
  88. package/lib/routes/app-sales/util.ts +161 -0
  89. package/lib/routes/apple/apps.ts +3 -3
  90. package/lib/routes/apple/design.ts +54 -0
  91. package/lib/routes/apple/namespace.ts +1 -1
  92. package/lib/routes/apple/podcast.ts +58 -25
  93. package/lib/routes/apple/security-releases.ts +179 -0
  94. package/lib/routes/apple/templates/security-releases.art +28 -0
  95. package/lib/routes/appleinsider/index.ts +1 -1
  96. package/lib/routes/aqara/post.ts +1 -1
  97. package/lib/routes/asiafruitchina/categories.ts +1 -1
  98. package/lib/routes/asiantolick/index.ts +3 -0
  99. package/lib/routes/asmr-200/index.ts +1 -0
  100. package/lib/routes/augmentcode/blog.ts +161 -0
  101. package/lib/routes/augmentcode/namespace.ts +9 -0
  102. package/lib/routes/augmentcode/templates/description.art +17 -0
  103. package/lib/routes/azul/namespace.ts +9 -0
  104. package/lib/routes/azul/packages.ts +105 -0
  105. package/lib/routes/baidu/gushitong/index.ts +1 -1
  106. package/lib/routes/bakamh/manga.ts +74 -0
  107. package/lib/routes/bakamh/namespace.ts +8 -0
  108. package/lib/routes/bandisoft/history.ts +329 -0
  109. package/lib/routes/bandisoft/namespace.ts +9 -0
  110. package/lib/routes/bangumi.tv/group/reply.ts +1 -1
  111. package/lib/routes/banshujiang/index.ts +763 -0
  112. package/lib/routes/banshujiang/namespace.ts +9 -0
  113. package/lib/routes/banshujiang/templates/description.art +17 -0
  114. package/lib/routes/banyuetan/index.ts +238 -0
  115. package/lib/routes/{xinhuanet → banyuetan}/namespace.ts +2 -2
  116. package/lib/routes/banyuetan/templates/description.art +21 -0
  117. package/lib/routes/baozimh/index.ts +21 -3
  118. package/lib/routes/baselang/index.ts +117 -0
  119. package/lib/routes/baselang/namespace.ts +6 -0
  120. package/lib/routes/bbc/learningenglish.ts +91 -0
  121. package/lib/routes/behance/user.ts +1 -1
  122. package/lib/routes/bestofjs/monthly.ts +137 -0
  123. package/lib/routes/bestofjs/namespace.ts +7 -0
  124. package/lib/routes/bestofjs/templates/description.art +36 -0
  125. package/lib/routes/bfl/announcements.ts +127 -0
  126. package/lib/routes/bfl/namespace.ts +9 -0
  127. package/lib/routes/bigquant/collections.ts +1 -1
  128. package/lib/routes/bilibili/bangumi.ts +1 -1
  129. package/lib/routes/bilibili/cache.ts +115 -22
  130. package/lib/routes/bilibili/check-cookie.ts +31 -0
  131. package/lib/routes/bilibili/danmaku.ts +1 -1
  132. package/lib/routes/bilibili/dynamic.ts +79 -28
  133. package/lib/routes/bilibili/followings-dynamic.ts +9 -3
  134. package/lib/routes/bilibili/page.ts +1 -1
  135. package/lib/routes/bilibili/ranking.ts +27 -17
  136. package/lib/routes/bilibili/readlist.ts +1 -1
  137. package/lib/routes/bilibili/video.ts +36 -73
  138. package/lib/routes/bilibili/wasm-exec.ts +1 -1
  139. package/lib/routes/bilibili/weekly-recommend.ts +22 -6
  140. package/lib/routes/binance/announcement.ts +1 -1
  141. package/lib/routes/biquge/index.ts +1 -1
  142. package/lib/routes/bitget/announcement.ts +1 -1
  143. package/lib/routes/bjp/apod.ts +2 -2
  144. package/lib/routes/bloomberg/authors.ts +1 -1
  145. package/lib/routes/bloomberg/index.ts +1 -1
  146. package/lib/routes/bnext/index.ts +58 -0
  147. package/lib/routes/bnext/namespace.ts +7 -0
  148. package/lib/routes/bookfere/category.ts +1 -1
  149. package/lib/routes/bookwalker/namespace.ts +9 -0
  150. package/lib/routes/bookwalker/search.ts +114 -0
  151. package/lib/routes/bookwalker/templates/description.art +13 -0
  152. package/lib/routes/booru/mmda.ts +1 -0
  153. package/lib/routes/bsky/feeds.ts +1 -1
  154. package/lib/routes/bsky/keyword.ts +15 -10
  155. package/lib/routes/bsky/posts.ts +1 -1
  156. package/lib/routes/buaa/jiaowu.ts +1 -1
  157. package/lib/routes/bullionvault/gold-news.ts +4 -4
  158. package/lib/routes/bupt/scss.ts +98 -0
  159. package/lib/routes/caixin/latest.ts +1 -1
  160. package/lib/routes/capitalmind/insights.ts +40 -0
  161. package/lib/routes/capitalmind/namespace.ts +8 -0
  162. package/lib/routes/capitalmind/podcasts.ts +41 -0
  163. package/lib/routes/capitalmind/utils.ts +122 -0
  164. package/lib/routes/cara/likes.ts +1 -1
  165. package/lib/routes/cara/portfolio.ts +1 -1
  166. package/lib/routes/cara/timeline.ts +1 -1
  167. package/lib/routes/cartoonmad/comic.ts +1 -1
  168. package/lib/routes/cast/index.ts +1 -1
  169. package/lib/routes/cbndata/information.ts +250 -0
  170. package/lib/routes/cbndata/namespace.ts +9 -0
  171. package/lib/routes/cbndata/templates/description.art +17 -0
  172. package/lib/routes/cccmc/index.ts +1 -1
  173. package/lib/routes/ccg/index.ts +181 -0
  174. package/lib/routes/ccg/namespace.ts +9 -0
  175. package/lib/routes/ccg/templates/description.art +21 -0
  176. package/lib/routes/changba/user.ts +1 -1
  177. package/lib/routes/chaping/banner.ts +1 -1
  178. package/lib/routes/chaping/news.ts +1 -1
  179. package/lib/routes/chaping/newsflash.ts +1 -1
  180. package/lib/routes/chikubi/category.ts +1 -0
  181. package/lib/routes/chikubi/index.ts +1 -0
  182. package/lib/routes/chikubi/navigation.ts +1 -0
  183. package/lib/routes/chikubi/nipple-video-category.ts +1 -0
  184. package/lib/routes/chikubi/nipple-video-maker.ts +1 -0
  185. package/lib/routes/chikubi/search.ts +1 -0
  186. package/lib/routes/chikubi/tag.ts +1 -0
  187. package/lib/routes/chinadaily/language.ts +1 -1
  188. package/lib/routes/chinaratings/credit-research.ts +1 -1
  189. package/lib/routes/chiphell/namespace.ts +7 -0
  190. package/lib/routes/chiphell/portal.ts +82 -0
  191. package/lib/routes/chnmuseum/namespace.ts +10 -0
  192. package/lib/routes/chnmuseum/xingnew.ts +73 -0
  193. package/lib/routes/chnmuseum/xwzt.ts +67 -0
  194. package/lib/routes/chocolatey/namespace.ts +9 -0
  195. package/lib/routes/chocolatey/packages.ts +122 -0
  196. package/lib/routes/chub/characters.ts +7 -6
  197. package/lib/routes/cih-index/namespace.ts +7 -0
  198. package/lib/routes/cih-index/report.ts +74 -0
  199. package/lib/routes/civitai/discussions.ts +1 -0
  200. package/lib/routes/civitai/models.ts +1 -0
  201. package/lib/routes/civitai/user.ts +93 -0
  202. package/lib/routes/cline/blog.ts +34 -23
  203. package/lib/routes/cmde/index.ts +1 -1
  204. package/lib/routes/cna/index.ts +2 -24
  205. package/lib/routes/cna/utils.ts +23 -0
  206. package/lib/routes/cna/web/index.ts +2 -22
  207. package/lib/routes/cnbeta/namespace.ts +1 -1
  208. package/lib/routes/cngal/entry.ts +2 -2
  209. package/lib/routes/cngal/weekly.ts +3 -3
  210. package/lib/routes/cockroachlabs/blog.ts +113 -0
  211. package/lib/routes/cockroachlabs/namespace.ts +7 -0
  212. package/lib/routes/commonhealth/index.ts +70 -0
  213. package/lib/routes/commonhealth/namespace.ts +7 -0
  214. package/lib/routes/commonhealth/templates/description.art +2 -0
  215. package/lib/routes/cool18/index.ts +4 -1
  216. package/lib/routes/coolapk/utils.ts +5 -4
  217. package/lib/routes/coolbuy/index.ts +106 -0
  218. package/lib/routes/coolbuy/namespace.ts +9 -0
  219. package/lib/routes/coolbuy/templates/description.art +48 -0
  220. package/lib/routes/coolidge/film-guide.ts +60 -0
  221. package/lib/routes/coolidge/namespace.ts +7 -0
  222. package/lib/routes/coolidge/news.ts +65 -0
  223. package/lib/routes/coolidge/templates/description.art +4 -0
  224. package/lib/routes/coomer/index.ts +15 -11
  225. package/lib/routes/coomer/namespace.ts +1 -1
  226. package/lib/routes/copymanga/comic.ts +9 -10
  227. package/lib/routes/cosplaytele/category.ts +1 -0
  228. package/lib/routes/cosplaytele/latest.ts +1 -0
  229. package/lib/routes/cosplaytele/popular.ts +1 -0
  230. package/lib/routes/cosplaytele/tag.ts +1 -0
  231. package/lib/routes/cpta/handler.ts +1 -1
  232. package/lib/routes/creative-comic/book.ts +1 -1
  233. package/lib/routes/crush/index.ts +77 -0
  234. package/lib/routes/crush/namespace.ts +7 -0
  235. package/lib/routes/css-tricks/articles.ts +48 -0
  236. package/lib/routes/css-tricks/collections.ts +62 -0
  237. package/lib/routes/css-tricks/namespace.ts +8 -0
  238. package/lib/routes/css-tricks/popular.ts +39 -0
  239. package/lib/routes/css-tricks/utils.ts +103 -0
  240. package/lib/routes/cuilingmag/index.ts +1 -1
  241. package/lib/routes/cursor/blog.ts +84 -0
  242. package/lib/routes/cursor/changelog.ts +26 -17
  243. package/lib/routes/cursor/namespace.ts +1 -1
  244. package/lib/routes/cw/utils.ts +6 -13
  245. package/lib/routes/cyzone/author.ts +1 -1
  246. package/lib/routes/cyzone/label.ts +1 -1
  247. package/lib/routes/daum/potplayer.ts +257 -0
  248. package/lib/routes/dbaplus/new.ts +392 -0
  249. package/lib/routes/dbaplus/templates/description.art +21 -0
  250. package/lib/routes/dcfever/news.ts +1 -1
  251. package/lib/routes/dcfever/reviews.ts +1 -1
  252. package/lib/routes/dcfever/trading-search.ts +1 -1
  253. package/lib/routes/dcfever/trading.ts +1 -1
  254. package/lib/routes/dealstreetasia/home.ts +1 -1
  255. package/lib/routes/dedao/index.ts +4 -4
  256. package/lib/routes/dedao/knowledge.ts +1 -1
  257. package/lib/routes/dedao/list.ts +1 -1
  258. package/lib/routes/dedao/user.ts +1 -1
  259. package/lib/routes/deepl/blog.ts +421 -0
  260. package/lib/routes/deepl/namespace.ts +9 -0
  261. package/lib/routes/deepl/templates/description.art +21 -0
  262. package/lib/routes/deeplearning/the-batch.ts +1 -1
  263. package/lib/routes/deepmind/blog.ts +1 -1
  264. package/lib/routes/dev.to/guides.ts +100 -0
  265. package/lib/routes/dev.to/namespace.ts +8 -0
  266. package/lib/routes/dev.to/top.ts +105 -0
  267. package/lib/routes/dgut/jwb.ts +73 -0
  268. package/lib/routes/dgut/namespace.ts +9 -0
  269. package/lib/routes/diandong/news.ts +1 -1
  270. package/lib/routes/diariofruticola/filtro.ts +1 -1
  271. package/lib/routes/digitalcameraworld/news.ts +1 -1
  272. package/lib/routes/digitalpolicyalert/activity-tracker.ts +135 -0
  273. package/lib/routes/digitalpolicyalert/namespace.ts +9 -0
  274. package/lib/routes/dlsite/campaign.ts +2 -1
  275. package/lib/routes/dlsite/ci-en/article.ts +2 -1
  276. package/lib/routes/dlsite/new.ts +2 -1
  277. package/lib/routes/dlsite/z-index/index.ts +3 -0
  278. package/lib/routes/dn/news.ts +1 -1
  279. package/lib/routes/dnaindia/common.ts +26 -8
  280. package/lib/routes/dockerhub/build.ts +1 -1
  281. package/lib/routes/dockerhub/utils.ts +1 -1
  282. package/lib/routes/dongqiudi/daily.ts +1 -1
  283. package/lib/routes/dongqiudi/player-news.ts +1 -1
  284. package/lib/routes/dongqiudi/result.ts +1 -1
  285. package/lib/routes/dongqiudi/special.ts +1 -1
  286. package/lib/routes/dongqiudi/team-news.ts +1 -1
  287. package/lib/routes/dongqiudi/top-news.ts +1 -1
  288. package/lib/routes/dora-world/article.ts +3 -3
  289. package/lib/routes/douban/other/group.ts +1 -1
  290. package/lib/routes/douban/other/list.ts +3 -3
  291. package/lib/routes/douban/other/topic.ts +1 -1
  292. package/lib/routes/douban/people/status.ts +1 -1
  293. package/lib/routes/dx2025/index.ts +1 -1
  294. package/lib/routes/dytt/index.ts +1 -2
  295. package/lib/routes/e-hentai/index.ts +4 -1
  296. package/lib/routes/eastmoney/report/index.ts +1 -1
  297. package/lib/routes/eastmoney/search/index.ts +1 -1
  298. package/lib/routes/eastmoney/ttjj/user.ts +1 -1
  299. package/lib/routes/economist/espresso.ts +1 -1
  300. package/lib/routes/economist/full.ts +1 -1
  301. package/lib/routes/eeo/kuaixun.ts +154 -0
  302. package/lib/routes/eeo/namespace.ts +9 -0
  303. package/lib/routes/eeo/templates/description.art +7 -0
  304. package/lib/routes/ehentai/ehapi.ts +3 -3
  305. package/lib/routes/ehentai/favorites.ts +1 -0
  306. package/lib/routes/ehentai/search.ts +1 -0
  307. package/lib/routes/ehentai/tag.ts +1 -0
  308. package/lib/routes/elecfans/article.ts +64 -0
  309. package/lib/routes/elecfans/namespace.ts +7 -0
  310. package/lib/routes/elecfans/soft.ts +69 -0
  311. package/lib/routes/embassy/supported-list.ts +1 -1
  312. package/lib/routes/engineering/namespace.ts +8 -0
  313. package/lib/routes/engineering/tag.ts +55 -0
  314. package/lib/routes/englishhome/index.ts +55 -0
  315. package/lib/routes/englishhome/namespace.ts +6 -0
  316. package/lib/routes/epicgames/index.ts +3 -3
  317. package/lib/routes/espn/news.ts +1 -1
  318. package/lib/routes/eventbrite/events.ts +152 -0
  319. package/lib/routes/eventbrite/namespace.ts +7 -0
  320. package/lib/routes/eventernote/actors.ts +62 -65
  321. package/lib/routes/everia/article.ts +21 -0
  322. package/lib/routes/everia/category.ts +55 -0
  323. package/lib/routes/everia/const.ts +4 -0
  324. package/lib/routes/everia/latest.ts +50 -0
  325. package/lib/routes/everia/namespace.ts +6 -0
  326. package/lib/routes/everia/search.ts +46 -0
  327. package/lib/routes/everia/tag.ts +55 -0
  328. package/lib/routes/expats/czech-news.ts +272 -0
  329. package/lib/routes/expats/namespace.ts +9 -0
  330. package/lib/routes/fanbox/index.ts +1 -0
  331. package/lib/routes/fanbox/utils.ts +1 -1
  332. package/lib/routes/fangchan/list.ts +1 -1
  333. package/lib/routes/fansly/post.ts +1 -0
  334. package/lib/routes/fansly/tag.ts +1 -0
  335. package/lib/routes/fantia/search.ts +3 -2
  336. package/lib/routes/fantia/user.ts +2 -1
  337. package/lib/routes/fantube/creator.ts +69 -0
  338. package/lib/routes/fantube/namespace.ts +7 -0
  339. package/lib/routes/fantube/templates/post.art +17 -0
  340. package/lib/routes/fantube/types.ts +100 -0
  341. package/lib/routes/fantube/utils.ts +268 -0
  342. package/lib/routes/fashionnetwork/namespace.ts +1 -1
  343. package/lib/routes/fastbull/express-news.ts +1 -1
  344. package/lib/routes/fastbull/news.ts +1 -1
  345. package/lib/routes/fediverse/timeline.ts +1 -1
  346. package/lib/routes/ff14/ff14-global.ts +1 -1
  347. package/lib/routes/finology/tag.ts +1 -1
  348. package/lib/routes/finviz/news.ts +1 -1
  349. package/lib/routes/follow/profile.ts +1 -1
  350. package/lib/routes/followin/index.ts +1 -1
  351. package/lib/routes/followin/news.ts +2 -2
  352. package/lib/routes/foresightnews/article.ts +1 -1
  353. package/lib/routes/foresightnews/column.ts +1 -1
  354. package/lib/routes/foresightnews/index.ts +1 -1
  355. package/lib/routes/foresightnews/news.ts +1 -1
  356. package/lib/routes/foresightnews/util.ts +1 -1
  357. package/lib/routes/freewechat/profile.ts +7 -1
  358. package/lib/routes/freexcomic/book.ts +4 -1
  359. package/lib/routes/ftm/index.ts +1 -1
  360. package/lib/routes/furaffinity/art.ts +1 -0
  361. package/lib/routes/furaffinity/browse.ts +2 -1
  362. package/lib/routes/furaffinity/commissions.ts +1 -0
  363. package/lib/routes/furaffinity/home.ts +2 -1
  364. package/lib/routes/furaffinity/journal-comments.ts +1 -0
  365. package/lib/routes/furaffinity/journals.ts +2 -1
  366. package/lib/routes/furaffinity/search.ts +2 -1
  367. package/lib/routes/furaffinity/shouts.ts +2 -1
  368. package/lib/routes/furaffinity/status.ts +2 -1
  369. package/lib/routes/furaffinity/submission-comments.ts +1 -0
  370. package/lib/routes/furaffinity/user.ts +1 -0
  371. package/lib/routes/furaffinity/watchers.ts +1 -0
  372. package/lib/routes/furaffinity/watching.ts +1 -0
  373. package/lib/routes/fx678/kx.ts +1 -1
  374. package/lib/routes/gamebase/news.ts +2 -2
  375. package/lib/routes/gamer/ani/anime.ts +1 -1
  376. package/lib/routes/gamer/ani/new-anime.ts +1 -1
  377. package/lib/routes/gamer/gnn-index.ts +9 -4
  378. package/lib/routes/gamer/hot.ts +6 -6
  379. package/lib/routes/gaoyu/blog.ts +145 -0
  380. package/lib/routes/gaoyu/namespace.ts +9 -0
  381. package/lib/routes/gaoyu/templates/description.art +7 -0
  382. package/lib/routes/gcores/categories.ts +1 -1
  383. package/lib/routes/gcores/collections.ts +1 -1
  384. package/lib/routes/gcores/radio.ts +1 -1
  385. package/lib/routes/gcores/tags.ts +1 -1
  386. package/lib/routes/gcores/topics.ts +1 -1
  387. package/lib/routes/gdufs/xwxy/index.ts +196 -0
  388. package/lib/routes/geekpark/index.ts +1 -1
  389. package/lib/routes/gelbooru/post.ts +1 -0
  390. package/lib/routes/gelonghui/home.ts +1 -1
  391. package/lib/routes/gelonghui/hot-article.ts +1 -1
  392. package/lib/routes/gelonghui/keyword.ts +1 -1
  393. package/lib/routes/gelonghui/live.ts +1 -1
  394. package/lib/routes/gelonghui/subject.ts +1 -1
  395. package/lib/routes/gelonghui/user.ts +1 -1
  396. package/lib/routes/genossenschaften/index.ts +2 -3
  397. package/lib/routes/geocaching/blogs.ts +2 -2
  398. package/lib/routes/gettr/user.ts +1 -1
  399. package/lib/routes/github/activity.ts +3 -2
  400. package/lib/routes/github/issue.ts +1 -1
  401. package/lib/routes/github/namespace.ts +1 -1
  402. package/lib/routes/github/private-feed.ts +229 -0
  403. package/lib/routes/github/star.ts +2 -2
  404. package/lib/routes/github/trending.ts +1 -1
  405. package/lib/routes/gitstar-ranking/index.ts +150 -0
  406. package/lib/routes/gitstar-ranking/namespace.ts +9 -0
  407. package/lib/routes/gitstar-ranking/templates/description.art +38 -0
  408. package/lib/routes/gmu/namespace.ts +7 -0
  409. package/lib/routes/gmu/news.ts +136 -0
  410. package/lib/routes/gmu/yjs.ts +173 -0
  411. package/lib/routes/go/jihs/idwr.ts +136 -0
  412. package/lib/routes/google/citations.ts +1 -1
  413. package/lib/routes/google/doodles.ts +1 -1
  414. package/lib/routes/google/extension.ts +9 -10
  415. package/lib/routes/google/jules.ts +63 -0
  416. package/lib/routes/google/news.ts +1 -1
  417. package/lib/routes/google/scholar.ts +1 -1
  418. package/lib/routes/google/search.ts +18 -30
  419. package/lib/routes/gov/beijing/bphc/index.ts +1 -1
  420. package/lib/routes/gov/ccdi/index.ts +1 -1
  421. package/lib/routes/gov/chongqing/sydwgkzp.ts +22 -6
  422. package/lib/routes/gov/customs/list.ts +8 -3
  423. package/lib/routes/gov/general/general.ts +1 -1
  424. package/lib/routes/gov/hangzhou/zwfw.ts +1 -1
  425. package/lib/routes/gov/mem/namespace.ts +7 -0
  426. package/lib/routes/gov/mem/zfxxgkpt.ts +96 -0
  427. package/lib/routes/gov/moa/gjs.ts +1 -1
  428. package/lib/routes/gov/mot/index.ts +157 -53
  429. package/lib/routes/gov/pbc/goutongjiaoliu.ts +1 -1
  430. package/lib/routes/gov/shenzhen/szlh/index.ts +77 -0
  431. package/lib/routes/gov/shenzhen/szlh/namespace.ts +8 -0
  432. package/lib/routes/gov/sichuan/deyang/govpublicinfo.ts +9 -10
  433. package/lib/routes/gq/news.ts +1 -1
  434. package/lib/routes/grainoil/category.ts +1 -2
  435. package/lib/routes/grist/featured.ts +1 -1
  436. package/lib/routes/grist/index.ts +1 -1
  437. package/lib/routes/grist/series.ts +1 -1
  438. package/lib/routes/grist/topic.ts +1 -1
  439. package/lib/routes/grist/utils.ts +5 -4
  440. package/lib/routes/guokr/channel.ts +1 -1
  441. package/lib/routes/guokr/scientific.ts +1 -1
  442. package/lib/routes/gxmzu/lib.ts +2 -2
  443. package/lib/routes/gxmzu/utils/index.ts +2 -2
  444. package/lib/routes/hackernews/index.ts +1 -1
  445. package/lib/routes/hameln/chapter.ts +1 -1
  446. package/lib/routes/hanime1/previews.ts +1 -0
  447. package/lib/routes/hanime1/search.ts +5 -2
  448. package/lib/routes/harvard/health/blog.ts +1 -1
  449. package/lib/routes/hbr/topic.ts +1 -1
  450. package/lib/routes/hedwig/namespace.ts +7 -0
  451. package/lib/routes/hedwig/posts.ts +60 -0
  452. package/lib/routes/hellobtc/information.ts +1 -1
  453. package/lib/routes/hellobtc/kepu.ts +1 -1
  454. package/lib/routes/hellobtc/news.ts +1 -1
  455. package/lib/routes/hellogithub/index.ts +1 -1
  456. package/lib/routes/hellogithub/report.ts +1 -1
  457. package/lib/routes/hex-rays/index.ts +1 -1
  458. package/lib/routes/hit/hitgs.ts +240 -54
  459. package/lib/routes/hit/namespace.ts +1 -1
  460. package/lib/routes/hit/templates/description.art +7 -0
  461. package/lib/routes/hkepc/index.ts +1 -1
  462. package/lib/routes/hlju/namespace.ts +8 -0
  463. package/lib/routes/hlju/news.ts +141 -0
  464. package/lib/routes/hostmonit/cloudflareyes.ts +1 -1
  465. package/lib/routes/hotukdeals/index.ts +1 -1
  466. package/lib/routes/hpoi/all.ts +1 -1
  467. package/lib/routes/hpoi/banner-item.ts +28 -11
  468. package/lib/routes/hpoi/character.ts +1 -1
  469. package/lib/routes/hpoi/info.ts +1 -1
  470. package/lib/routes/hpoi/work.ts +1 -1
  471. package/lib/routes/huawei/developer/harmonyos/samplecode.ts +69 -0
  472. package/lib/routes/huawei/namespace.ts +7 -0
  473. package/lib/routes/hudsonrivertrading/index.ts +122 -0
  474. package/lib/routes/hudsonrivertrading/namespace.ts +7 -0
  475. package/lib/routes/huggingface/daily-papers.ts +45 -9
  476. package/lib/routes/huijin-inv/namespace.ts +7 -0
  477. package/lib/routes/huijin-inv/news.ts +83 -0
  478. package/lib/routes/hupu/index.ts +170 -74
  479. package/lib/routes/hupu/templates/description.art +1 -1
  480. package/lib/routes/hupu/types.ts +163 -0
  481. package/lib/routes/hust/gs.ts +1 -1
  482. package/lib/routes/hust/mse.ts +1 -1
  483. package/lib/routes/huxiu/brief-column.ts +1 -1
  484. package/lib/routes/huxiu/channel.ts +1 -1
  485. package/lib/routes/huxiu/club.ts +1 -1
  486. package/lib/routes/huxiu/collection.ts +1 -1
  487. package/lib/routes/huxiu/member.ts +1 -1
  488. package/lib/routes/huxiu/moment.ts +1 -1
  489. package/lib/routes/huxiu/search.ts +1 -1
  490. package/lib/routes/huxiu/tag.ts +1 -1
  491. package/lib/routes/huxiu/util.ts +2 -2
  492. package/lib/routes/hyperdash/namespace.ts +7 -0
  493. package/lib/routes/hyperdash/templates/description.art +34 -0
  494. package/lib/routes/hyperdash/top-traders.ts +84 -0
  495. package/lib/routes/hyperdash/utils.ts +49 -0
  496. package/lib/routes/hypergryph/arknights/announce.ts +1 -1
  497. package/lib/routes/idolypride/news.ts +1 -1
  498. package/lib/routes/ielts/index.ts +1 -1
  499. package/lib/routes/ifanr/category.ts +1 -1
  500. package/lib/routes/ifanr/digest.ts +1 -1
  501. package/lib/routes/ifanr/index.ts +1 -1
  502. package/lib/routes/imdb/chart.ts +1 -1
  503. package/lib/routes/immich/cursed-knowledge.ts +49 -0
  504. package/lib/routes/immich/namespace.ts +7 -0
  505. package/lib/routes/infoq/presentations.ts +2 -2
  506. package/lib/routes/infoq/recommend.ts +1 -1
  507. package/lib/routes/infoq/topic.ts +17 -14
  508. package/lib/routes/informedainews/docs.ts +1 -1
  509. package/lib/routes/inoreader/index.ts +1 -1
  510. package/lib/routes/inoreader/rss.ts +1 -1
  511. package/lib/routes/instagram/common-utils.ts +3 -3
  512. package/lib/routes/instagram/web-api/index.ts +17 -13
  513. package/lib/routes/instagram/web-api/utils.ts +46 -63
  514. package/lib/routes/investor/index.ts +362 -148
  515. package/lib/routes/itch/devlog.ts +7 -3
  516. package/lib/routes/iwara/index.ts +3 -0
  517. package/lib/routes/iwara/subscriptions.ts +1 -0
  518. package/lib/routes/jamesclear/book-summaries.ts +40 -0
  519. package/lib/routes/jamesclear/great-speeches.ts +40 -0
  520. package/lib/routes/jamesclear/namespace.ts +8 -0
  521. package/lib/routes/jamesclear/quotes.ts +40 -0
  522. package/lib/routes/jamesclear/three-two-one.ts +41 -0
  523. package/lib/routes/jamesclear/utils.ts +22 -0
  524. package/lib/routes/japanpost/utils.ts +2 -2
  525. package/lib/routes/javbus/index.ts +5 -2
  526. package/lib/routes/javdb/actors.ts +1 -0
  527. package/lib/routes/javdb/index.ts +3 -0
  528. package/lib/routes/javdb/lists.ts +3 -0
  529. package/lib/routes/javdb/makers.ts +1 -0
  530. package/lib/routes/javdb/rankings.ts +1 -0
  531. package/lib/routes/javdb/search.ts +1 -0
  532. package/lib/routes/javdb/series.ts +1 -0
  533. package/lib/routes/javdb/tags.ts +1 -0
  534. package/lib/routes/javdb/videocodes.ts +1 -0
  535. package/lib/routes/javlibrary/bestrated.ts +3 -0
  536. package/lib/routes/javlibrary/bestreviews.ts +1 -0
  537. package/lib/routes/javlibrary/genre.ts +3 -0
  538. package/lib/routes/javlibrary/maker.ts +1 -0
  539. package/lib/routes/javlibrary/mostwanted.ts +3 -0
  540. package/lib/routes/javlibrary/newentries.ts +3 -0
  541. package/lib/routes/javlibrary/newrelease.ts +3 -0
  542. package/lib/routes/javlibrary/star.ts +1 -0
  543. package/lib/routes/javlibrary/update.ts +3 -0
  544. package/lib/routes/javlibrary/user.ts +3 -0
  545. package/lib/routes/javlibrary/utils.ts +1 -1
  546. package/lib/routes/javtiful/actress.ts +3 -0
  547. package/lib/routes/javtiful/channel.ts +3 -0
  548. package/lib/routes/javtrailers/casts.ts +3 -0
  549. package/lib/routes/javtrailers/categories.ts +3 -0
  550. package/lib/routes/javtrailers/studios.ts +3 -0
  551. package/lib/routes/jbma/namespace.ts +17 -0
  552. package/lib/routes/jbma/report.ts +471 -0
  553. package/lib/routes/jetbrains/comments.ts +99 -0
  554. package/lib/routes/jetbrains/namespace.ts +8 -0
  555. package/lib/routes/jianshu/collection.ts +1 -1
  556. package/lib/routes/jianshu/home.ts +1 -1
  557. package/lib/routes/jianshu/user.ts +1 -1
  558. package/lib/routes/jike/topic.ts +1 -1
  559. package/lib/routes/jike/user.ts +1 -1
  560. package/lib/routes/jimmyspa/books.ts +1 -1
  561. package/lib/routes/jimmyspa/news.ts +1 -1
  562. package/lib/routes/jin10/index.ts +1 -1
  563. package/lib/routes/jin10/topic.ts +1 -1
  564. package/lib/routes/jingzhengu/utils.ts +1 -1
  565. package/lib/routes/jinse/lives.ts +1 -1
  566. package/lib/routes/jinse/timeline.ts +1 -1
  567. package/lib/routes/jiuyangongshe/community.ts +1 -1
  568. package/lib/routes/jjwxc/book.ts +1 -1
  569. package/lib/routes/jou/utils/index.ts +2 -2
  570. package/lib/routes/jpxgmn/search.ts +3 -0
  571. package/lib/routes/jpxgmn/tab.ts +3 -0
  572. package/lib/routes/jpxgmn/weekly.ts +3 -0
  573. package/lib/routes/juejin/aicoding.ts +102 -0
  574. package/lib/routes/juejin/trending.ts +70 -20
  575. package/lib/routes/juejin/utils.ts +36 -51
  576. package/lib/routes/jumeili/home.ts +1 -1
  577. package/lib/routes/kakuyomu/works.ts +4 -1
  578. package/lib/routes/kaopu/news.ts +1 -1
  579. package/lib/routes/keep/user.ts +1 -1
  580. package/lib/routes/kemono/const.ts +9 -0
  581. package/lib/routes/kemono/index.ts +291 -141
  582. package/lib/routes/kemono/namespace.ts +1 -1
  583. package/lib/routes/kemono/templates/discord.art +1 -1
  584. package/lib/routes/kemono/types.ts +31 -0
  585. package/lib/routes/kiro/blog.ts +131 -0
  586. package/lib/routes/kiro/changelog.ts +128 -0
  587. package/lib/routes/kiro/namespace.ts +9 -0
  588. package/lib/routes/kisskiss/blog.ts +1 -0
  589. package/lib/routes/komiic/comic.ts +2 -1
  590. package/lib/routes/konachan/post.ts +30 -19
  591. package/lib/routes/kovidgoyal/kitty/changelog.ts +83 -0
  592. package/lib/routes/kovidgoyal/namespace.ts +7 -0
  593. package/lib/routes/koyso/index.ts +339 -0
  594. package/lib/routes/koyso/namespace.ts +9 -0
  595. package/lib/routes/koyso/templates/description.art +13 -0
  596. package/lib/routes/kpopping/kpics.ts +3 -4
  597. package/lib/routes/kpopping/news.ts +2 -2
  598. package/lib/routes/kunchengblog/essay.ts +1 -1
  599. package/lib/routes/kurogames/wutheringwaves/constants.ts +1 -1
  600. package/lib/routes/kurogames/wutheringwaves/news.ts +4 -1
  601. package/lib/routes/laimanhua/index.ts +1 -0
  602. package/lib/routes/landiannews/category.ts +1 -1
  603. package/lib/routes/landiannews/index.ts +1 -1
  604. package/lib/routes/landiannews/tag.ts +1 -1
  605. package/lib/routes/laohu8/personal.ts +1 -1
  606. package/lib/routes/lemmy/index.ts +1 -1
  607. package/lib/routes/lenovo/drive.ts +65 -0
  608. package/lib/routes/lenovo/namespace.ts +7 -0
  609. package/lib/routes/lenovo/templates/drive.art +9 -0
  610. package/lib/routes/letterboxd/index.ts +65 -0
  611. package/lib/routes/letterboxd/namespace.ts +8 -0
  612. package/lib/routes/lhratings/research.ts +1 -1
  613. package/lib/routes/line/publisher.ts +1 -1
  614. package/lib/routes/line/today.ts +1 -1
  615. package/lib/routes/line/utils.ts +1 -1
  616. package/lib/routes/lineageos/changes.ts +79 -0
  617. package/lib/routes/lineageos/namespace.ts +9 -0
  618. package/lib/routes/linkedin/cn/renderer.ts +1 -1
  619. package/lib/routes/linkedin/jobs.ts +1 -1
  620. package/lib/routes/liquipedia/cs-matches.ts +42 -14
  621. package/lib/routes/literotica/category.ts +3 -0
  622. package/lib/routes/literotica/new.ts +1 -0
  623. package/lib/routes/liveuamap/index.ts +1 -1
  624. package/lib/routes/lofter/collection.ts +1 -1
  625. package/lib/routes/lofter/tag.ts +28 -4
  626. package/lib/routes/lofter/user.ts +1 -1
  627. package/lib/routes/lovelive-anime/topics.ts +5 -6
  628. package/lib/routes/maccms/index.ts +1 -1
  629. package/lib/routes/macfilos/blog.ts +1 -1
  630. package/lib/routes/magnumphotos/magazine.ts +1 -1
  631. package/lib/routes/makerworld/contest.ts +51 -0
  632. package/lib/routes/makerworld/namespace.ts +7 -0
  633. package/lib/routes/makerworld/trending.ts +45 -0
  634. package/lib/routes/makerworld/user-upload.ts +54 -0
  635. package/lib/routes/makerworld/utils.ts +18 -0
  636. package/lib/routes/mangadex/_access.ts +111 -0
  637. package/lib/routes/mangadex/_constants.ts +75 -0
  638. package/lib/routes/mangadex/_feed.ts +184 -0
  639. package/lib/routes/mangadex/_profile.ts +47 -0
  640. package/lib/routes/mangadex/_utils.ts +49 -0
  641. package/lib/routes/mangadex/index.ts +19 -67
  642. package/lib/routes/mangadex/mdlist/feed.ts +157 -0
  643. package/lib/routes/mangadex/namespace.ts +2 -0
  644. package/lib/routes/mangadex/user/feed.ts +127 -0
  645. package/lib/routes/mangadex/user/follows.ts +150 -0
  646. package/lib/routes/manhuagui/comic.ts +2 -1
  647. package/lib/routes/manhuagui/subscribe.ts +1 -0
  648. package/lib/routes/manus/blog.ts +77 -0
  649. package/lib/routes/manus/namespace.ts +7 -0
  650. package/lib/routes/manyvids/video.ts +3 -0
  651. package/lib/routes/mastodon/account-id.ts +1 -1
  652. package/lib/routes/mastodon/acct.ts +1 -1
  653. package/lib/routes/mastodon/tag.ts +48 -0
  654. package/lib/routes/mastodon/timeline-local.ts +1 -1
  655. package/lib/routes/mastodon/timeline-remote.ts +1 -1
  656. package/lib/routes/mathpix/blog.ts +155 -0
  657. package/lib/routes/mathpix/namespace.ts +9 -0
  658. package/lib/routes/mathpix/templates/description.art +21 -0
  659. package/lib/routes/matters/namespace.ts +1 -1
  660. package/lib/routes/mckinsey/cn/category-map.ts +9 -15
  661. package/lib/routes/mckinsey/cn/index.ts +78 -41
  662. package/lib/routes/medsci/index.ts +1 -1
  663. package/lib/routes/melonbooks/search.ts +1 -0
  664. package/lib/routes/mercari/util.ts +1 -1
  665. package/lib/routes/meta/ai-blog.ts +121 -0
  666. package/lib/routes/meta/namespace.ts +6 -0
  667. package/lib/routes/metacritic/index.ts +2 -2
  668. package/lib/routes/meteoblue/namespace.ts +8 -0
  669. package/lib/routes/meteoblue/weathernews.ts +75 -0
  670. package/lib/routes/meteor/index.ts +1 -1
  671. package/lib/routes/microsoft/addon.ts +7 -9
  672. package/lib/routes/mihoyo/sr/news.ts +2 -1
  673. package/lib/routes/mihoyo/ys/news.ts +19 -73
  674. package/lib/routes/mihoyo/zzz/news.ts +107 -0
  675. package/lib/routes/mingpao/index.ts +1 -1
  676. package/lib/routes/mirror/index.ts +1 -1
  677. package/lib/routes/missav/new.ts +28 -9
  678. package/lib/routes/misskey/featured-notes.ts +1 -1
  679. package/lib/routes/misskey/user-timeline.ts +1 -1
  680. package/lib/routes/mit/hanlab.ts +61 -0
  681. package/lib/routes/mit/namespace.ts +6 -0
  682. package/lib/routes/mittrchina/index.ts +4 -4
  683. package/lib/routes/mixcloud/config.ts +129 -0
  684. package/lib/routes/mixcloud/index.ts +163 -107
  685. package/lib/routes/mixcloud/user-playlist.ts +31 -0
  686. package/lib/routes/mixi2/community.ts +72 -0
  687. package/lib/routes/mixi2/discovery.ts +52 -0
  688. package/lib/routes/mixi2/home.ts +51 -0
  689. package/lib/routes/mixi2/namespace.ts +8 -0
  690. package/lib/routes/mixi2/user.ts +77 -0
  691. package/lib/routes/mixi2/utils.ts +56 -0
  692. package/lib/routes/modelscope/learn.ts +94 -0
  693. package/lib/routes/moodysmismicrosite/report.ts +1 -1
  694. package/lib/routes/musify/index.ts +129 -0
  695. package/lib/routes/musify/namespace.ts +9 -0
  696. package/lib/routes/musikguru/namespace.ts +9 -0
  697. package/lib/routes/musikguru/news.ts +146 -0
  698. package/lib/routes/musikguru/templates/description.art +21 -0
  699. package/lib/routes/mycard520/news.ts +2 -2
  700. package/lib/routes/myfans/post.ts +1 -0
  701. package/lib/routes/mygopen/index.ts +1 -1
  702. package/lib/routes/nankai/ai-notice.ts +142 -0
  703. package/lib/routes/nankai/cc-notice.ts +114 -0
  704. package/lib/routes/nankai/graduate-notice.ts +162 -0
  705. package/lib/routes/nankai/jwc.ts +131 -0
  706. package/lib/routes/nankai/namespace.ts +7 -0
  707. package/lib/routes/nankai/notice.ts +84 -0
  708. package/lib/routes/nankai/yzb.ts +97 -0
  709. package/lib/routes/nasa/apod.ts +1 -1
  710. package/lib/routes/natgeo/natgeo.ts +3 -2
  711. package/lib/routes/naturalism/namespace.ts +7 -0
  712. package/lib/routes/naturalism/new.ts +59 -0
  713. package/lib/routes/nautil/topics.ts +1 -1
  714. package/lib/routes/netflav/index.ts +3 -0
  715. package/lib/routes/neu/yz.ts +172 -0
  716. package/lib/routes/newslaundry/explainer.ts +30 -0
  717. package/lib/routes/newslaundry/namespace.ts +8 -0
  718. package/lib/routes/newslaundry/nl-cheatsheet.ts +30 -0
  719. package/lib/routes/newslaundry/nl-collaborations.ts +30 -0
  720. package/lib/routes/newslaundry/podcast.ts +61 -0
  721. package/lib/routes/newslaundry/reports.ts +30 -0
  722. package/lib/routes/newslaundry/shot.ts +30 -0
  723. package/lib/routes/newslaundry/subscriber-only.ts +30 -0
  724. package/lib/routes/newslaundry/templates/description.art +28 -0
  725. package/lib/routes/newslaundry/utils.ts +108 -0
  726. package/lib/routes/newswav/latest.ts +100 -0
  727. package/lib/routes/newswav/namespace.ts +7 -0
  728. package/lib/routes/newyorker/news.ts +1 -1
  729. package/lib/routes/nga/forum.ts +1 -1
  730. package/lib/routes/nhentai/index.ts +1 -0
  731. package/lib/routes/nhentai/search.ts +1 -0
  732. package/lib/routes/nhk/news-web-easy.ts +1 -1
  733. package/lib/routes/nhk/news.ts +1 -1
  734. package/lib/routes/nicovideo/mylist.ts +39 -0
  735. package/lib/routes/nicovideo/types.ts +27 -0
  736. package/lib/routes/nicovideo/utils.ts +27 -1
  737. package/lib/routes/nifd/research.ts +16 -0
  738. package/lib/routes/nikkei/cn/index.ts +1 -4
  739. package/lib/routes/nio/namespace.ts +9 -0
  740. package/lib/routes/nio/nioradio.ts +75 -0
  741. package/lib/routes/njust/cs.ts +58 -0
  742. package/lib/routes/njust/utils.ts +1 -1
  743. package/lib/routes/njxzc/utils/index.ts +2 -2
  744. package/lib/routes/notefolio/search.ts +1 -1
  745. package/lib/routes/notion/namespace.ts +2 -2
  746. package/lib/routes/now/news.ts +93 -33
  747. package/lib/routes/ntdm/video.ts +5 -5
  748. package/lib/routes/nuaa/utils/pypasswaf.ts +1 -1
  749. package/lib/routes/nytimes/book.ts +1 -1
  750. package/lib/routes/nytimes/daily-briefing-chinese.ts +1 -1
  751. package/lib/routes/nytimes/index.ts +2 -2
  752. package/lib/routes/nytimes/rss.ts +1 -1
  753. package/lib/routes/odaily/activity.ts +1 -1
  754. package/lib/routes/odaily/newsflash.ts +1 -1
  755. package/lib/routes/odaily/post.ts +1 -1
  756. package/lib/routes/odaily/search-news.ts +1 -1
  757. package/lib/routes/odaily/user.ts +1 -1
  758. package/lib/routes/oilchem/index.ts +1 -1
  759. package/lib/routes/olevod/vod.ts +3 -0
  760. package/lib/routes/olevod/vodlist.ts +3 -0
  761. package/lib/routes/oncc/money18.ts +1 -1
  762. package/lib/routes/openai/cookbook.ts +1 -1
  763. package/lib/routes/oreno3d/main.ts +1 -0
  764. package/lib/routes/oschina/column.ts +1 -2
  765. package/lib/routes/oschina/event.ts +1 -1
  766. package/lib/routes/osu/beatmaps/latest-ranked.ts +2 -3
  767. package/lib/routes/panewslab/author.ts +1 -1
  768. package/lib/routes/panewslab/news.ts +1 -1
  769. package/lib/routes/panewslab/profundity.ts +1 -1
  770. package/lib/routes/panewslab/topic.ts +1 -1
  771. package/lib/routes/papers/category.ts +3 -4
  772. package/lib/routes/patreon/feed.ts +1 -0
  773. package/lib/routes/paulgraham/article.ts +2 -2
  774. package/lib/routes/pconline/focus.ts +1 -1
  775. package/lib/routes/phoronix/index.ts +1 -1
  776. package/lib/routes/picnob/user.ts +64 -146
  777. package/lib/routes/picnob/utils.ts +14 -12
  778. package/lib/routes/picuki/namespace.ts +1 -7
  779. package/lib/routes/picuki/profile.ts +122 -170
  780. package/lib/routes/pingwest/status.ts +1 -1
  781. package/lib/routes/pingwest/tag.ts +1 -1
  782. package/lib/routes/pingwest/user.ts +1 -1
  783. package/lib/routes/pixabay/search.ts +1 -1
  784. package/lib/routes/pixiv/bookmarks.ts +2 -1
  785. package/lib/routes/pixiv/illustfollow.ts +1 -0
  786. package/lib/routes/pixiv/novel-api/series/sfw.ts +1 -1
  787. package/lib/routes/pixiv/novel-api/user-novels/sfw.ts +1 -1
  788. package/lib/routes/pixiv/novel-series.ts +17 -3
  789. package/lib/routes/pixiv/novels.ts +3 -2
  790. package/lib/routes/pixiv/ranking.ts +2 -1
  791. package/lib/routes/pixiv/search.ts +2 -1
  792. package/lib/routes/pixiv/user.ts +3 -2
  793. package/lib/routes/pixivision/index.ts +1 -1
  794. package/lib/routes/pixivision/utils.ts +1 -1
  795. package/lib/routes/pku/hr.ts +1 -1
  796. package/lib/routes/pku/scc/recruit.ts +1 -1
  797. package/lib/routes/playno1/av.ts +1 -0
  798. package/lib/routes/plurk/anonymous.ts +1 -1
  799. package/lib/routes/plurk/hotlinks.ts +1 -1
  800. package/lib/routes/plurk/news.ts +1 -1
  801. package/lib/routes/plurk/search.ts +1 -1
  802. package/lib/routes/plurk/top.ts +1 -1
  803. package/lib/routes/plurk/topic.ts +1 -1
  804. package/lib/routes/plurk/user.ts +1 -1
  805. package/lib/routes/podwise/collections.ts +1 -1
  806. package/lib/routes/pornhub/category-url.ts +1 -0
  807. package/lib/routes/pornhub/category.ts +2 -1
  808. package/lib/routes/pornhub/model.ts +4 -8
  809. package/lib/routes/pornhub/pornstar.ts +4 -8
  810. package/lib/routes/pornhub/search.ts +2 -1
  811. package/lib/routes/pornhub/users.ts +3 -7
  812. package/lib/routes/pornhub/utils.ts +12 -1
  813. package/lib/routes/producthunt/templates/description.art +2 -2
  814. package/lib/routes/producthunt/today.ts +17 -8
  815. package/lib/routes/ps/monthly-games.ts +1 -1
  816. package/lib/routes/ps/trophy.ts +1 -1
  817. package/lib/routes/psyche/topic.ts +1 -1
  818. package/lib/routes/pubscholar/utils.ts +14 -1
  819. package/lib/routes/python/namespace.ts +9 -0
  820. package/lib/routes/python/release.ts +120 -0
  821. package/lib/routes/qbitai/category.ts +1 -1
  822. package/lib/routes/qbitai/tag.ts +1 -1
  823. package/lib/routes/qidian/chapter.ts +1 -1
  824. package/lib/routes/qingting/podcast.ts +2 -1
  825. package/lib/routes/qipamaijia/index.ts +1 -0
  826. package/lib/routes/qq/lol/news.ts +1 -1
  827. package/lib/routes/questmobile/report.ts +2 -2
  828. package/lib/routes/qweather/3days.ts +14 -14
  829. package/lib/routes/qweather/now.ts +12 -10
  830. package/lib/routes/qweather/util.tsx +89 -0
  831. package/lib/routes/qwenlm/blog.ts +75 -0
  832. package/lib/routes/qwenlm/namespace.ts +6 -0
  833. package/lib/routes/radio/album.ts +40 -49
  834. package/lib/routes/radio/templates/description.art +2 -2
  835. package/lib/routes/radio-canada/latest.ts +30 -17
  836. package/lib/routes/railway/index.ts +73 -0
  837. package/lib/routes/railway/namespace.ts +8 -0
  838. package/lib/routes/rawkuma/manga.ts +1 -0
  839. package/lib/routes/readhub/daily.ts +1 -1
  840. package/lib/routes/readhub/index.ts +1 -1
  841. package/lib/routes/rebase/geekdaily.ts +1 -1
  842. package/lib/routes/reuters/common.ts +1 -4
  843. package/lib/routes/reuters/investigates.ts +1 -1
  844. package/lib/routes/rockthejvm/articles.ts +167 -0
  845. package/lib/routes/rockthejvm/namespace.ts +9 -0
  846. package/lib/routes/rockthejvm/templates/description.art +7 -0
  847. package/lib/routes/rsshub/routes.ts +1 -1
  848. package/lib/routes/ruc/ai.ts +1 -1
  849. package/lib/routes/ruc/hr.ts +1 -1
  850. package/lib/routes/samrdprc/index.ts +241 -0
  851. package/lib/routes/samrdprc/namespace.ts +7 -0
  852. package/lib/routes/samrdprc/news.ts +79 -0
  853. package/lib/routes/sankei/namespace.ts +7 -0
  854. package/lib/routes/sankei/news.ts +68 -0
  855. package/lib/routes/sankei/topics.ts +71 -0
  856. package/lib/routes/sciencenet/user.ts +1 -1
  857. package/lib/routes/scientificamerican/podcast.ts +2 -2
  858. package/lib/routes/scitechvista/index.ts +99 -0
  859. package/lib/routes/scitechvista/namespace.ts +7 -0
  860. package/lib/routes/scitechvista/templates/description.art +6 -0
  861. package/lib/routes/scoop/apps.ts +186 -0
  862. package/lib/routes/scoop/namespace.ts +9 -0
  863. package/lib/routes/scoop/templates/description.art +56 -0
  864. package/lib/routes/scpta/namespace.ts +8 -0
  865. package/lib/routes/scpta/news.ts +101 -0
  866. package/lib/routes/sdo/ff14risingstones/api.ts +78 -0
  867. package/lib/routes/sdo/ff14risingstones/constant.ts +338 -0
  868. package/lib/routes/sdo/ff14risingstones/posts.ts +80 -0
  869. package/lib/routes/sdo/ff14risingstones/strats.ts +75 -0
  870. package/lib/routes/sdo/ff14risingstones/templates/duties-party.art +41 -0
  871. package/lib/routes/sdo/ff14risingstones/templates/fc-party.art +26 -0
  872. package/lib/routes/sdo/ff14risingstones/templates/novice-network-party.art +9 -0
  873. package/lib/routes/sdo/ff14risingstones/templates/rp-party.art +15 -0
  874. package/lib/routes/sdo/ff14risingstones/timeline.ts +31 -0
  875. package/lib/routes/sdo/ff14risingstones/types/dynamic.ts +50 -0
  876. package/lib/routes/sdo/ff14risingstones/types/index.ts +3 -0
  877. package/lib/routes/sdo/ff14risingstones/types/other.ts +57 -0
  878. package/lib/routes/sdo/ff14risingstones/types/party.ts +111 -0
  879. package/lib/routes/sdo/ff14risingstones/user-dynamics.ts +32 -0
  880. package/lib/routes/sdo/ff14risingstones/user-posts.ts +32 -0
  881. package/lib/routes/sdo/ff14risingstones/user-resently.ts +38 -0
  882. package/lib/routes/sdo/ff14risingstones/user-strats.ts +32 -0
  883. package/lib/routes/sdo/ff14risingstones/utils.ts +215 -0
  884. package/lib/routes/sdo/namespace.ts +7 -0
  885. package/lib/routes/secretsanfrancisco/namespace.ts +7 -0
  886. package/lib/routes/secretsanfrancisco/rss.ts +101 -0
  887. package/lib/routes/secretsanfrancisco/templates/description.art +9 -0
  888. package/lib/routes/seekingalpha/index.ts +1 -1
  889. package/lib/routes/sehuatang/index.ts +29 -31
  890. package/lib/routes/sehuatang/user.ts +1 -0
  891. package/lib/routes/setn/index.ts +11 -2
  892. package/lib/routes/seu/cyber/index.ts +78 -0
  893. package/lib/routes/showstart/utils.ts +1 -1
  894. package/lib/routes/shu/global.ts +6 -5
  895. package/lib/routes/shu/xxgk.ts +107 -0
  896. package/lib/routes/shuiguopai/index.ts +3 -0
  897. package/lib/routes/sicau/jiaowu.ts +42 -34
  898. package/lib/routes/simpleinfo/index.ts +1 -1
  899. package/lib/routes/sis001/author.ts +1 -0
  900. package/lib/routes/sis001/forum.ts +1 -0
  901. package/lib/routes/sjtu/jwc.ts +1 -1
  902. package/lib/routes/sjtu/seiee/icisee.ts +67 -0
  903. package/lib/routes/skeb/following-creators.ts +1 -0
  904. package/lib/routes/skeb/following-works.ts +1 -0
  905. package/lib/routes/skeb/friend-works.ts +1 -0
  906. package/lib/routes/skeb/index.ts +1 -0
  907. package/lib/routes/skeb/search.ts +1 -0
  908. package/lib/routes/skeb/works.ts +44 -25
  909. package/lib/routes/skebetter/illust.ts +1 -0
  910. package/lib/routes/skebetter/index.ts +1 -0
  911. package/lib/routes/skebetter/manga.ts +1 -0
  912. package/lib/routes/sketis/isabelle-dev/blog/index.ts +1 -1
  913. package/lib/routes/slowmist/slowmist.ts +1 -1
  914. package/lib/routes/smartlink/index.ts +84 -0
  915. package/lib/routes/smartlink/namespace.ts +7 -0
  916. package/lib/routes/smzdm/article.ts +19 -3
  917. package/lib/routes/smzdm/baoliao.ts +19 -3
  918. package/lib/routes/smzdm/haowen-fenlei.ts +19 -3
  919. package/lib/routes/smzdm/haowen.ts +19 -3
  920. package/lib/routes/smzdm/keyword.ts +15 -2
  921. package/lib/routes/smzdm/product.ts +19 -3
  922. package/lib/routes/smzdm/ranking.ts +172 -156
  923. package/lib/routes/smzdm/utils.ts +7 -0
  924. package/lib/routes/sohu/mp.ts +19 -8
  925. package/lib/routes/solidot/main.ts +1 -1
  926. package/lib/routes/sotwe/namespace.ts +1 -0
  927. package/lib/routes/sotwe/user.ts +98 -0
  928. package/lib/routes/spankbang/new-videos.ts +1 -0
  929. package/lib/routes/spglobal/ratings.ts +1 -1
  930. package/lib/routes/spotify/artist.ts +1 -1
  931. package/lib/routes/spotify/playlist.ts +1 -1
  932. package/lib/routes/spotify/show.ts +1 -1
  933. package/lib/routes/sspai/activity.ts +1 -1
  934. package/lib/routes/sspai/author.ts +1 -1
  935. package/lib/routes/sspai/bookmarks.ts +1 -1
  936. package/lib/routes/sspai/column.ts +1 -1
  937. package/lib/routes/sspai/index.ts +6 -2
  938. package/lib/routes/sspai/matrix.ts +1 -1
  939. package/lib/routes/sspai/series-update.ts +1 -1
  940. package/lib/routes/sspai/series.ts +1 -1
  941. package/lib/routes/sspai/shortcuts-gallery.ts +1 -1
  942. package/lib/routes/sspai/tag.ts +1 -1
  943. package/lib/routes/sspai/topic.ts +1 -1
  944. package/lib/routes/sspai/topics.ts +1 -1
  945. package/lib/routes/stanford/blog.ts +77 -0
  946. package/lib/routes/stanford/namespace.ts +7 -0
  947. package/lib/routes/startuplatte/index.ts +1 -1
  948. package/lib/routes/stcn/index.ts +1 -2
  949. package/lib/routes/stcn/rank.ts +1 -2
  950. package/lib/routes/steam/news.ts +281 -0
  951. package/lib/routes/stheadline/std/realtime.ts +24 -16
  952. package/lib/routes/stockedge/daily-news.ts +1 -1
  953. package/lib/routes/storm/channel.ts +80 -0
  954. package/lib/routes/surfshark/blog.ts +273 -77
  955. package/lib/routes/surfshark/templates/description.art +16 -4
  956. package/lib/routes/sustainabilitymag/articles.ts +1 -1
  957. package/lib/routes/syosetu/dev.ts +1 -1
  958. package/lib/routes/syosetu/index.ts +1 -1
  959. package/lib/routes/syosetu/ranking-isekai.ts +1 -1
  960. package/lib/routes/szse/disclosure/listed-notice.ts +44 -6
  961. package/lib/routes/t66y/index.ts +1 -0
  962. package/lib/routes/t66y/post.ts +1 -0
  963. package/lib/routes/tailwindcss/blog.ts +26 -0
  964. package/lib/routes/tailwindcss/constants.ts +2 -0
  965. package/lib/routes/tailwindcss/namespace.ts +7 -0
  966. package/lib/routes/tailwindcss/utils.ts +68 -0
  967. package/lib/routes/taobao/mysql.ts +157 -0
  968. package/lib/routes/taobao/namespace.ts +2 -2
  969. package/lib/routes/techcrunch/category.ts +48 -0
  970. package/lib/routes/techcrunch/news.ts +1 -0
  971. package/lib/routes/techflowpost/express.ts +1 -1
  972. package/lib/routes/techflowpost/index.ts +1 -1
  973. package/lib/routes/techpowerup/index.ts +11 -11
  974. package/lib/routes/techpowerup/namespace.ts +1 -1
  975. package/lib/routes/techpowerup/review.ts +12 -12
  976. package/lib/routes/techpowerup/utils.ts +2 -2
  977. package/lib/routes/telegram/blog.ts +1 -1
  978. package/lib/routes/telegram/channel-media.ts +249 -0
  979. package/lib/routes/telegram/channel.ts +8 -7
  980. package/lib/routes/telegram/stories.ts +130 -0
  981. package/lib/routes/telegram/tglib/channel.ts +146 -117
  982. package/lib/routes/telegram/tglib/client.ts +37 -139
  983. package/lib/routes/tesla/cx.ts +2 -2
  984. package/lib/routes/test/api-index.ts +13 -0
  985. package/lib/routes/test/index.ts +5 -1
  986. package/lib/routes/theblockbeats/index.ts +3 -3
  987. package/lib/routes/thegadgetflow/namespace.ts +7 -0
  988. package/lib/routes/thegadgetflow/rss.ts +99 -0
  989. package/lib/routes/thegadgetflow/templates/description.art +9 -0
  990. package/lib/routes/theinitium/app.ts +4 -3
  991. package/lib/routes/theinitium/author.ts +1 -1
  992. package/lib/routes/theinitium/channel.ts +1 -1
  993. package/lib/routes/theinitium/tags.ts +1 -1
  994. package/lib/routes/theinitium/templates/description.art +0 -3
  995. package/lib/routes/themoviedb/episodes.ts +1 -1
  996. package/lib/routes/themoviedb/seasons.ts +1 -1
  997. package/lib/routes/thepaper/channel.ts +1 -1
  998. package/lib/routes/thepaper/factpaper.ts +1 -1
  999. package/lib/routes/thepaper/featured.ts +1 -1
  1000. package/lib/routes/thepaper/list.ts +1 -1
  1001. package/lib/routes/thepaper/sidebar.ts +1 -1
  1002. package/lib/routes/thepaper/user.ts +1 -1
  1003. package/lib/routes/thepaper/utils.ts +8 -3
  1004. package/lib/routes/thepetcity/index.ts +1 -1
  1005. package/lib/routes/theverge/index.ts +21 -7
  1006. package/lib/routes/thewirehindi/category.ts +78 -0
  1007. package/lib/routes/thewirehindi/index.ts +43 -0
  1008. package/lib/routes/thewirehindi/namespace.ts +7 -0
  1009. package/lib/routes/thewirehindi/templates/description.art +9 -0
  1010. package/lib/routes/thewirehindi/utils.ts +33 -0
  1011. package/lib/routes/threads/index.ts +1 -1
  1012. package/lib/routes/threads/utils.ts +9 -5
  1013. package/lib/routes/thzt/index.ts +72 -0
  1014. package/lib/routes/thzt/namespace.ts +8 -0
  1015. package/lib/routes/tidb/blog.ts +314 -0
  1016. package/lib/routes/tidb/namespace.ts +9 -0
  1017. package/lib/routes/timednews/news.ts +1 -1
  1018. package/lib/routes/tingtingfm/program.ts +1 -1
  1019. package/lib/routes/tju/yzb/index.ts +2 -2
  1020. package/lib/routes/tmtpost/column.ts +1 -1
  1021. package/lib/routes/tophub/index.ts +1 -1
  1022. package/lib/routes/tophub/list.ts +1 -1
  1023. package/lib/routes/toutiao/user.ts +2 -2
  1024. package/lib/routes/trendforce/namespace.ts +9 -0
  1025. package/lib/routes/trendforce/new.ts +113 -0
  1026. package/lib/routes/tsinghua/news.ts +87 -0
  1027. package/lib/routes/tumblr/namespace.ts +17 -0
  1028. package/lib/routes/tumblr/posts.ts +74 -0
  1029. package/lib/routes/tumblr/utils.ts +110 -0
  1030. package/lib/routes/tver/namespace.ts +7 -0
  1031. package/lib/routes/tver/series.ts +98 -0
  1032. package/lib/routes/twitch/live.ts +1 -1
  1033. package/lib/routes/twitch/video.ts +1 -1
  1034. package/lib/routes/twitter/api/mobile-api/api.ts +1 -1
  1035. package/lib/routes/twitter/api/web-api/api.ts +5 -1
  1036. package/lib/routes/twitter/api/web-api/login.ts +1 -3
  1037. package/lib/routes/twitter/api/web-api/utils.ts +24 -2
  1038. package/lib/routes/twitter/keyword.ts +1 -1
  1039. package/lib/routes/twitter/list.ts +1 -1
  1040. package/lib/routes/twitter/media.ts +1 -1
  1041. package/lib/routes/twitter/namespace.ts +1 -0
  1042. package/lib/routes/twitter/user.ts +1 -1
  1043. package/lib/routes/twitter/utils.ts +30 -22
  1044. package/lib/routes/twreporter/category.ts +1 -1
  1045. package/lib/routes/twreporter/newest.ts +1 -1
  1046. package/lib/routes/txrjy/fornumtopic.ts +2 -2
  1047. package/lib/routes/typst/universe.ts +1 -1
  1048. package/lib/routes/uber/blog.ts +87 -46
  1049. package/lib/routes/udn/breaking-news.ts +2 -2
  1050. package/lib/routes/udn/global/index.ts +37 -25
  1051. package/lib/routes/udn/global/tag.ts +16 -9
  1052. package/lib/routes/uestc/auto.ts +1 -1
  1053. package/lib/routes/uestc/cqe.ts +1 -1
  1054. package/lib/routes/uestc/scse.ts +1 -1
  1055. package/lib/routes/uestc/sice.ts +1 -1
  1056. package/lib/routes/uestc/sise.ts +1 -1
  1057. package/lib/routes/unusualwhales/news.ts +10 -8
  1058. package/lib/routes/upc/jwc.ts +32 -46
  1059. package/lib/routes/uptimerobot/rss.ts +1 -1
  1060. package/lib/routes/uraaka-joshi/uraaka-joshi-user.ts +1 -0
  1061. package/lib/routes/uraaka-joshi/uraaka-joshi.ts +3 -0
  1062. package/lib/routes/utgd/category.ts +1 -1
  1063. package/lib/routes/utgd/timeline.ts +1 -1
  1064. package/lib/routes/utgd/topic.ts +1 -1
  1065. package/lib/routes/v2ex/tab.ts +1 -1
  1066. package/lib/routes/v2ex/topics.ts +1 -1
  1067. package/lib/routes/vertikal/latest.ts +1 -1
  1068. package/lib/routes/vimeo/category.ts +1 -1
  1069. package/lib/routes/vimeo/usr-videos.ts +1 -1
  1070. package/lib/routes/visionias/daily-news-summary.ts +65 -0
  1071. package/lib/routes/visionias/monthly-magazine.ts +68 -0
  1072. package/lib/routes/visionias/news-today.ts +3 -13
  1073. package/lib/routes/visionias/utils.ts +5 -5
  1074. package/lib/routes/visionias/weekly-focus.ts +2 -2
  1075. package/lib/routes/visualstudio/code-blog.ts +67 -0
  1076. package/lib/routes/visualstudio/namespace.ts +7 -0
  1077. package/lib/routes/vocus/publication.ts +1 -1
  1078. package/lib/routes/vocus/user.ts +1 -1
  1079. package/lib/routes/voronoiapp/common.ts +1 -1
  1080. package/lib/routes/wainao/topics.ts +1 -1
  1081. package/lib/routes/warhammer-community/namespace.ts +7 -0
  1082. package/lib/routes/warhammer-community/news.ts +73 -0
  1083. package/lib/routes/warp/blog.ts +77 -0
  1084. package/lib/routes/warp/namespace.ts +7 -0
  1085. package/lib/routes/wdfxw/bookfree.ts +528 -0
  1086. package/lib/routes/wdfxw/namespace.ts +8 -0
  1087. package/lib/routes/wdfxw/templates/description.art +13 -0
  1088. package/lib/routes/weibo/keyword.ts +1 -1
  1089. package/lib/routes/weibo/search/hot.ts +1 -1
  1090. package/lib/routes/weibo/user.ts +1 -1
  1091. package/lib/routes/weibo/utils.ts +17 -9
  1092. package/lib/routes/whu/swrh.ts +1 -1
  1093. package/lib/routes/wikipedia/current-events.ts +411 -0
  1094. package/lib/routes/wikipedia/namespace.ts +7 -0
  1095. package/lib/routes/windsurf/blog.ts +118 -0
  1096. package/lib/routes/windsurf/changelog.ts +100 -0
  1097. package/lib/routes/windsurf/namespace.ts +9 -0
  1098. package/lib/routes/windsurf/templates/description.art +21 -0
  1099. package/lib/routes/wnacg/category.ts +3 -0
  1100. package/lib/routes/wnacg/index.ts +3 -0
  1101. package/lib/routes/wnacg/tag.ts +3 -0
  1102. package/lib/routes/wohnnet/index.ts +2 -2
  1103. package/lib/routes/woshipm/popular.ts +3 -2
  1104. package/lib/routes/x6d/index.ts +1 -1
  1105. package/lib/routes/xbookcn/blog.ts +1 -0
  1106. package/lib/routes/xiaohongshu/check-cookie.ts +16 -0
  1107. package/lib/routes/xiaohongshu/user.ts +4 -4
  1108. package/lib/routes/xiaohongshu/util.ts +38 -19
  1109. package/lib/routes/xiaoyuzhou/pickup.ts +1 -1
  1110. package/lib/routes/xiaoyuzhou/podcast.ts +18 -5
  1111. package/lib/routes/ximalaya/album.ts +32 -70
  1112. package/lib/routes/ximalaya/types.ts +48 -0
  1113. package/lib/routes/ximalaya/utils.ts +9 -7
  1114. package/lib/routes/xjtu/ee-jzxx.ts +110 -0
  1115. package/lib/routes/xjtu/zs.ts +1 -1
  1116. package/lib/routes/xmanhua/index.ts +1 -0
  1117. package/lib/routes/xsijishe/forum.ts +1 -0
  1118. package/lib/routes/xsijishe/rank.ts +3 -2
  1119. package/lib/routes/xueqiu/cookies.ts +1 -1
  1120. package/lib/routes/xueqiu/user.ts +115 -52
  1121. package/lib/routes/xwenming/index.ts +184 -0
  1122. package/lib/routes/xwenming/namespace.ts +9 -0
  1123. package/lib/routes/yahoo/news/index.ts +1 -1
  1124. package/lib/routes/yahoo/news/listid.ts +1 -1
  1125. package/lib/routes/yahoo/news/provider-helper.ts +1 -1
  1126. package/lib/routes/yahoo/news/provider.ts +1 -1
  1127. package/lib/routes/yahoo/news/utils.ts +8 -4
  1128. package/lib/routes/yande/post.ts +4 -1
  1129. package/lib/routes/yilinzazhi/index.ts +1 -1
  1130. package/lib/routes/yilinzazhi/latest.ts +1 -1
  1131. package/lib/routes/ymgal/article.ts +1 -1
  1132. package/lib/routes/ymgal/game.ts +1 -0
  1133. package/lib/routes/yoasobi-music/media.ts +1 -1
  1134. package/lib/routes/youtube/api/google.ts +230 -0
  1135. package/lib/routes/youtube/api/subtitles.ts +86 -0
  1136. package/lib/routes/youtube/api/youtubei.ts +104 -0
  1137. package/lib/routes/youtube/channel.ts +11 -36
  1138. package/lib/routes/youtube/community.ts +9 -7
  1139. package/lib/routes/youtube/playlist.ts +11 -30
  1140. package/lib/routes/youtube/user.ts +13 -93
  1141. package/lib/routes/youtube/utils.ts +28 -53
  1142. package/lib/routes/youzhiyouxing/materials.ts +1 -1
  1143. package/lib/routes/yuanliao/index.ts +218 -0
  1144. package/lib/routes/yuanliao/namespace.ts +9 -0
  1145. package/lib/routes/yyets/article.ts +1 -1
  1146. package/lib/routes/yyets/today.ts +1 -1
  1147. package/lib/routes/zaimanhua/comic.ts +89 -0
  1148. package/lib/routes/zaimanhua/template/comic.art +3 -0
  1149. package/lib/routes/zaimanhua/update.ts +43 -10
  1150. package/lib/routes/zaker/utils.ts +1 -1
  1151. package/lib/routes/zaobao/interactive.ts +18 -7
  1152. package/lib/routes/zaobao/other.ts +3 -2
  1153. package/lib/routes/zaobao/realtime.ts +3 -2
  1154. package/lib/routes/zaobao/util.tsx +185 -0
  1155. package/lib/routes/zaobao/zaobao.tsx +23 -0
  1156. package/lib/routes/zaobao/znews.ts +3 -2
  1157. package/lib/routes/zcool/top.ts +1 -1
  1158. package/lib/routes/zcool/user.ts +1 -1
  1159. package/lib/routes/zed/blog.ts +75 -0
  1160. package/lib/routes/zed/namespace.ts +7 -0
  1161. package/lib/routes/zhihu/activities.ts +13 -4
  1162. package/lib/routes/zhihu/all-collections.ts +10 -1
  1163. package/lib/routes/zhihu/answers.ts +7 -1
  1164. package/lib/routes/zhihu/check-cookie.ts +31 -0
  1165. package/lib/routes/zhihu/collection.ts +9 -1
  1166. package/lib/routes/zhihu/daily-section.ts +19 -24
  1167. package/lib/routes/zhihu/daily.ts +8 -11
  1168. package/lib/routes/zhihu/execlib/x-zse-96-v3.ts +5 -5
  1169. package/lib/routes/zhihu/hot.ts +12 -79
  1170. package/lib/routes/zhihu/posts.ts +14 -6
  1171. package/lib/routes/zhihu/question.ts +7 -1
  1172. package/lib/routes/zhihu/topic.ts +11 -5
  1173. package/lib/routes/zhihu/types.ts +29 -29
  1174. package/lib/routes/zhihu/utils.ts +59 -44
  1175. package/lib/routes/zhihu/zhuanlan.ts +7 -2
  1176. package/lib/routes/zhitongcaijing/index.ts +1 -1
  1177. package/lib/routes/zhizhuan100/namespace.ts +7 -0
  1178. package/lib/routes/zhizhuan100/report.ts +79 -0
  1179. package/lib/routes/zimuxia/portfolio.ts +1 -1
  1180. package/lib/routes/zju/cse/index.ts +102 -0
  1181. package/lib/routes/zju/sis/index.ts +161 -0
  1182. package/lib/routes/zodgame/forum.ts +1 -0
  1183. package/lib/routes/zongheng/detail.ts +77 -0
  1184. package/lib/routes/zongheng/namespace.ts +7 -0
  1185. package/lib/server.ts +5 -0
  1186. package/lib/types.ts +107 -58
  1187. package/lib/utils/cache/index.ts +2 -2
  1188. package/lib/utils/helpers.test.ts +8 -1
  1189. package/lib/utils/helpers.ts +19 -0
  1190. package/lib/utils/logger.ts +1 -1
  1191. package/lib/utils/proxy/index.ts +102 -18
  1192. package/lib/utils/proxy/multi-proxy.ts +139 -0
  1193. package/lib/utils/proxy/unify-proxy.ts +3 -1
  1194. package/lib/utils/puppeteer-utils.test.ts +6 -6
  1195. package/lib/utils/puppeteer.test.ts +136 -27
  1196. package/lib/utils/puppeteer.ts +152 -28
  1197. package/lib/utils/readable-social.test.ts +65 -0
  1198. package/lib/utils/readable-social.ts +15 -1
  1199. package/lib/utils/request-rewriter/fetch.ts +42 -4
  1200. package/lib/views/index.tsx +4 -4
  1201. package/package.json +78 -81
  1202. package/lib/routes/gdufs/xwxy/xwxy-news.ts +0 -90
  1203. package/lib/routes/go/niid/idwr-dl.ts +0 -104
  1204. package/lib/routes/google/templates/description.art +0 -6
  1205. package/lib/routes/hit/jwc.ts +0 -86
  1206. package/lib/routes/mihoyo/templates/ys.art +0 -4
  1207. package/lib/routes/mixcloud/queries.ts +0 -2274
  1208. package/lib/routes/picnob/templates/desc.art +0 -20
  1209. package/lib/routes/picuki/utils.ts +0 -24
  1210. package/lib/routes/qweather/templates/3days.art +0 -22
  1211. package/lib/routes/qweather/templates/now.art +0 -16
  1212. package/lib/routes/xinhuanet/app.ts +0 -109
  1213. package/lib/routes/zaobao/templates/zaobao.art +0 -17
  1214. package/lib/routes/zaobao/util.ts +0 -195
  1215. package/lib/routes-deprecated/blogs/hedwig.js +0 -42
  1216. package/lib/routes-deprecated/chiphell/forum.js +0 -67
  1217. package/lib/routes-deprecated/dev.to/top.js +0 -40
@@ -0,0 +1 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>RSSHub</title><rect width="24" height="24" fill="#ffd6a6" rx="7.636"/><path fill="#ff8549" d="M.142 6.16Q.002 6.875 0 7.635v8.728A7.636 7.636 0 0 0 7.636 24h8.728a7.7 7.7 0 0 0 1.477-.142 13.26 13.26 0 0 0 1.25-5.64c0-7.35-5.959-13.309-13.31-13.309a13.25 13.25 0 0 0-5.64 1.25"/><circle cx="5.727" cy="18.273" r="4.964" fill="#ff2900"/></svg>
package/lib/config.ts CHANGED
@@ -37,6 +37,7 @@ export type Config = {
37
37
  };
38
38
  // proxy
39
39
  proxyUri?: string;
40
+ proxyUris?: string[];
40
41
  proxy: {
41
42
  protocol?: string;
42
43
  host?: string;
@@ -44,6 +45,8 @@ export type Config = {
44
45
  auth?: string;
45
46
  url_regex: string;
46
47
  strategy: 'on_retry' | 'all';
48
+ failoverTimeout?: number;
49
+ healthCheckInterval?: number;
47
50
  };
48
51
  pacUri?: string;
49
52
  pacScript?: string;
@@ -73,6 +76,7 @@ export type Config = {
73
76
  allow_user_hotlink_template: boolean;
74
77
  filter_regex_engine: string;
75
78
  allow_user_supply_unsafe_domain: boolean;
79
+ disable_nsfw: boolean;
76
80
  };
77
81
  suffix?: string;
78
82
  titleLengthLimit: number;
@@ -98,6 +102,7 @@ export type Config = {
98
102
  cookies: Record<string, string | undefined>;
99
103
  dmImgList?: string;
100
104
  dmImgInter?: string;
105
+ excludeSubtitles?: boolean;
101
106
  };
102
107
  bitbucket: {
103
108
  username?: string;
@@ -182,6 +187,7 @@ export type Config = {
182
187
  };
183
188
  hefeng: {
184
189
  key?: string;
190
+ apiHost?: string;
185
191
  };
186
192
  infzm: {
187
193
  cookie?: string;
@@ -216,6 +222,9 @@ export type Config = {
216
222
  lightnovel: {
217
223
  cookie?: string;
218
224
  };
225
+ lofter: {
226
+ cookies?: string;
227
+ };
219
228
  lorientlejour: {
220
229
  token?: string;
221
230
  username?: string;
@@ -226,6 +235,13 @@ export type Config = {
226
235
  password?: string;
227
236
  refreshToken?: string;
228
237
  };
238
+ mangadex: {
239
+ username?: string;
240
+ password?: string;
241
+ clientId?: string;
242
+ clientSecret?: string;
243
+ refreshToken?: string;
244
+ };
229
245
  manhuagui: {
230
246
  cookie?: string;
231
247
  };
@@ -248,6 +264,10 @@ export type Config = {
248
264
  misskey: {
249
265
  accessToken?: string;
250
266
  };
267
+ mixi2: {
268
+ authToken?: string;
269
+ authKey?: string;
270
+ };
251
271
  mox: {
252
272
  cookie: string;
253
273
  };
@@ -306,6 +326,10 @@ export type Config = {
306
326
  scihub: {
307
327
  host?: string;
308
328
  };
329
+ sdo: {
330
+ ff14risingstones?: string;
331
+ ua?: string;
332
+ };
309
333
  sis001: {
310
334
  baseUrl?: string;
311
335
  };
@@ -341,6 +365,11 @@ export type Config = {
341
365
  tsdm39: {
342
366
  cookie: string;
343
367
  };
368
+ tumblr: {
369
+ clientId?: string;
370
+ clientSecret?: string;
371
+ refreshToken?: string;
372
+ };
344
373
  twitter: {
345
374
  username?: string[];
346
375
  password?: string[];
@@ -401,6 +430,9 @@ export type Config = {
401
430
  zsxq: {
402
431
  accessToken?: string;
403
432
  };
433
+ smzdm: {
434
+ cookie?: string;
435
+ };
404
436
  };
405
437
 
406
438
  const value: Config | Record<string, any> = {};
@@ -446,7 +478,7 @@ const calculateValue = () => {
446
478
  const _value = {
447
479
  // app config
448
480
  disallowRobot: toBoolean(envs.DISALLOW_ROBOT, false),
449
- enableCluster: envs.ENABLE_CLUSTER,
481
+ enableCluster: toBoolean(envs.ENABLE_CLUSTER, false),
450
482
  isPackage: !!envs.IS_PACKAGE,
451
483
  nodeName: envs.NODE_NAME,
452
484
  puppeteerWSEndpoint: envs.PUPPETEER_WS_ENDPOINT,
@@ -477,6 +509,11 @@ const calculateValue = () => {
477
509
  },
478
510
  // proxy
479
511
  proxyUri: envs.PROXY_URI,
512
+ proxyUris: envs.PROXY_URIS
513
+ ? envs.PROXY_URIS.split(',')
514
+ .map((uri) => uri.trim())
515
+ .filter(Boolean)
516
+ : undefined,
480
517
  proxy: {
481
518
  protocol: envs.PROXY_PROTOCOL,
482
519
  host: envs.PROXY_HOST,
@@ -484,6 +521,8 @@ const calculateValue = () => {
484
521
  auth: envs.PROXY_AUTH,
485
522
  url_regex: envs.PROXY_URL_REGEX || '.*',
486
523
  strategy: envs.PROXY_STRATEGY || 'all', // all / on_retry
524
+ failoverTimeout: toInt(envs.PROXY_FAILOVER_TIMEOUT, 5000),
525
+ healthCheckInterval: toInt(envs.PROXY_HEALTH_CHECK_INTERVAL, 60000),
487
526
  },
488
527
  pacUri: envs.PAC_URI,
489
528
  pacScript: envs.PAC_SCRIPT,
@@ -514,6 +553,7 @@ const calculateValue = () => {
514
553
  allow_user_hotlink_template: toBoolean(envs.ALLOW_USER_HOTLINK_TEMPLATE, false),
515
554
  filter_regex_engine: envs.FILTER_REGEX_ENGINE || 're2',
516
555
  allow_user_supply_unsafe_domain: toBoolean(envs.ALLOW_USER_SUPPLY_UNSAFE_DOMAIN, false),
556
+ disable_nsfw: toBoolean(envs.DISABLE_NSFW, false),
517
557
  },
518
558
  suffix: envs.SUFFIX,
519
559
  titleLengthLimit: toInt(envs.TITLE_LENGTH_LIMIT, 150),
@@ -539,6 +579,7 @@ const calculateValue = () => {
539
579
  cookies: bilibili_cookies,
540
580
  dmImgList: envs.BILIBILI_DM_IMG_LIST,
541
581
  dmImgInter: envs.BILIBILI_DM_IMG_INTER,
582
+ excludeSubtitles: toBoolean(envs.BILIBILI_EXCLUDE_SUBTITLES, false),
542
583
  },
543
584
  bitbucket: {
544
585
  username: envs.BITBUCKET_USERNAME,
@@ -623,6 +664,7 @@ const calculateValue = () => {
623
664
  },
624
665
  hefeng: {
625
666
  key: envs.HEFENG_KEY,
667
+ apiHost: envs.HEFENG_API_HOST,
626
668
  },
627
669
  infzm: {
628
670
  cookie: envs.INFZM_COOKIE,
@@ -657,6 +699,9 @@ const calculateValue = () => {
657
699
  lightnovel: {
658
700
  cookie: envs.SECURITY_KEY,
659
701
  },
702
+ lofter: {
703
+ cookies: envs.LOFTER_COOKIE,
704
+ },
660
705
  lorientlejour: {
661
706
  token: envs.LORIENTLEJOUR_TOKEN,
662
707
  username: envs.LORIENTLEJOUR_USERNAME,
@@ -667,6 +712,13 @@ const calculateValue = () => {
667
712
  password: envs.MALAYSIAKINI_PASSWORD,
668
713
  refreshToken: envs.MALAYSIAKINI_REFRESHTOKEN,
669
714
  },
715
+ mangadex: {
716
+ username: envs.MANGADEX_USERNAME, // required when refresh-token is not set
717
+ password: envs.MANGADEX_PASSWORD, // required when refresh-token is not set
718
+ clientId: envs.MANGADEX_CLIENT_ID,
719
+ clientSecret: envs.MANGADEX_CLIENT_SECRET,
720
+ refreshToken: envs.MANGADEX_REFRESH_TOKEN,
721
+ },
670
722
  manhuagui: {
671
723
  cookie: envs.MHGUI_COOKIE,
672
724
  },
@@ -689,6 +741,10 @@ const calculateValue = () => {
689
741
  misskey: {
690
742
  accessToken: envs.MISSKEY_ACCESS_TOKEN,
691
743
  },
744
+ mixi2: {
745
+ authToken: envs.MIXI2_AUTH_TOKEN,
746
+ authKey: envs.MIXI2_AUTH_KEY,
747
+ },
692
748
  mox: {
693
749
  cookie: envs.MOX_COOKIE,
694
750
  },
@@ -747,6 +803,10 @@ const calculateValue = () => {
747
803
  scihub: {
748
804
  host: envs.SCIHUB_HOST || 'https://sci-hub.se/',
749
805
  },
806
+ sdo: {
807
+ ff14risingstones: envs.SDO_FF14RISINGSTONES,
808
+ ua: envs.SDO_UA,
809
+ },
750
810
  sis001: {
751
811
  baseUrl: envs.SIS001_BASE_URL || 'https://sis001.com',
752
812
  },
@@ -782,6 +842,11 @@ const calculateValue = () => {
782
842
  tsdm39: {
783
843
  cookie: envs.TSDM39_COOKIES,
784
844
  },
845
+ tumblr: {
846
+ clientId: envs.TUMBLR_CLIENT_ID,
847
+ clientSecret: envs.TUMBLR_CLIENT_SECRET,
848
+ refreshToken: envs.TUMBLR_REFRESH_TOKEN,
849
+ },
785
850
  twitter: {
786
851
  username: envs.TWITTER_USERNAME?.split(','),
787
852
  password: envs.TWITTER_PASSWORD?.split(','),
@@ -842,6 +907,9 @@ const calculateValue = () => {
842
907
  zsxq: {
843
908
  accessToken: envs.ZSXQ_ACCESS_TOKEN,
844
909
  },
910
+ smzdm: {
911
+ cookie: envs.SMZDM_COOKIE,
912
+ },
845
913
  };
846
914
 
847
915
  for (const name in _value) {
@@ -55,6 +55,14 @@ describe('invalid-parameter-error', () => {
55
55
  }, 20000);
56
56
  });
57
57
 
58
+ describe('captcha-error', () => {
59
+ it(`captcha-error`, async () => {
60
+ const response = await request.get('/test/captcha-error');
61
+ expect(response.status).toBe(503);
62
+ expect(response.text).toMatch('CaptchaError: Test captcha error');
63
+ }, 20000);
64
+ });
65
+
58
66
  describe('route throws an error', () => {
59
67
  it('route path error should have path mounted', async () => {
60
68
  await request.get('/test/error');
@@ -67,19 +75,21 @@ describe('route throws an error', () => {
67
75
  const value = $(item).find('.debug-value').html()?.trim();
68
76
  switch (key) {
69
77
  case 'Request Amount:':
70
- expect(value).toBe('11');
78
+ expect(value).toBe('12');
71
79
  break;
72
80
  case 'Hot Routes:':
73
- expect(value).toBe('8 /test/:id/:params?<br>');
81
+ expect(value).toBe('9 /test/:id/:params?<br>');
74
82
  break;
75
83
  case 'Hot Paths:':
76
- expect(value).toBe('2 /test/error<br>2 /test/slow<br>2 /test/slow4<br>1 /test/httperror<br>1 /test/config-not-found-error<br>1 /test/invalid-parameter-error<br>1 /thisDoesNotExist<br>1 /<br>');
84
+ expect(value).toBe(
85
+ '2 /test/error<br>2 /test/slow<br>2 /test/slow4<br>1 /test/httperror<br>1 /test/config-not-found-error<br>1 /test/invalid-parameter-error<br>1 /test/captcha-error<br>1 /thisDoesNotExist<br>1 /<br>'
86
+ );
77
87
  break;
78
88
  case 'Hot Error Routes:':
79
- expect(value).toBe('5 /test/:id/:params?<br>');
89
+ expect(value).toBe('6 /test/:id/:params?<br>');
80
90
  break;
81
91
  case 'Hot Error Paths:':
82
- expect(value).toBe('2 /test/error<br>1 /test/httperror<br>1 /test/slow4<br>1 /test/config-not-found-error<br>1 /test/invalid-parameter-error<br>1 /thisDoesNotExist<br>');
92
+ expect(value).toBe('2 /test/error<br>1 /test/httperror<br>1 /test/slow4<br>1 /test/config-not-found-error<br>1 /test/invalid-parameter-error<br>1 /test/captcha-error<br>1 /thisDoesNotExist<br>');
83
93
  break;
84
94
  default:
85
95
  }
@@ -1,4 +1,5 @@
1
1
  import { type NotFoundHandler, type ErrorHandler } from 'hono';
2
+ import { routePath } from 'hono/route';
2
3
  import { getDebugInfo, setDebugInfo } from '@/utils/debug-info';
3
4
  import { config } from '@/config';
4
5
  import * as Sentry from '@sentry/node';
@@ -11,7 +12,7 @@ import { requestMetric } from '@/utils/otel';
11
12
 
12
13
  export const errorHandler: ErrorHandler = (error, ctx) => {
13
14
  const requestPath = ctx.req.path;
14
- const matchedRoute = ctx.req.routePath;
15
+ const matchedRoute = routePath(ctx);
15
16
  const hasMatchedRoute = matchedRoute !== '/*';
16
17
 
17
18
  const debug = getDebugInfo();
@@ -42,7 +43,7 @@ export const errorHandler: ErrorHandler = (error, ctx) => {
42
43
  });
43
44
  }
44
45
 
45
- let errorMessage = process.env.NODE_ENV === 'production' ? error.message : error.stack || error.message;
46
+ let errorMessage = (process.env.NODE_ENV || process.env.VERCEL_ENV) === 'production' ? error.message : error.stack || error.message;
46
47
  switch (error.constructor.name) {
47
48
  case 'HTTPError':
48
49
  case 'RequestError':
@@ -0,0 +1,5 @@
1
+ class CaptchaError extends Error {
2
+ name = 'CaptchaError';
3
+ }
4
+
5
+ export default CaptchaError;
package/lib/index.ts CHANGED
@@ -3,26 +3,59 @@ import logger from '@/utils/logger';
3
3
  import { getLocalhostAddress } from '@/utils/common-utils';
4
4
  import { config } from '@/config';
5
5
  import app from '@/app';
6
+ import os from 'node:os';
7
+ import cluster from 'node:cluster';
8
+ import process from 'node:process';
6
9
 
7
10
  const port = config.connect.port;
8
11
  const hostIPList = getLocalhostAddress();
9
12
 
10
- logger.info(`🎉 RSSHub is running on port ${port}! Cheers!`);
11
- logger.info('💖 Can you help keep this open source project alive? Please sponsor 👉 https://docs.rsshub.app/sponsor');
12
- logger.info(`🔗 Local: 👉 http://localhost:${port}`);
13
- if (config.listenInaddrAny) {
14
- for (const ip of hostIPList) {
15
- logger.info(`🔗 Network: 👉 http://${ip}:${port}`);
13
+ let server;
14
+ if (config.enableCluster) {
15
+ if (cluster.isPrimary) {
16
+ logger.info(`🎉 RSSHub is running on port ${port}! Cheers!`);
17
+ logger.info(`🔗 Local: 👉 http://localhost:${port}`);
18
+ if (config.listenInaddrAny) {
19
+ for (const ip of hostIPList) {
20
+ logger.info(`🔗 Network: 👉 http://${ip}:${port}`);
21
+ }
22
+ }
23
+
24
+ logger.info(`Primary ${process.pid} is running`);
25
+
26
+ const numCPUs = os.availableParallelism();
27
+
28
+ for (let i = 0; i < numCPUs; i++) {
29
+ cluster.fork();
30
+ }
31
+ } else {
32
+ logger.info(`Worker ${process.pid} is running`);
33
+ serve({
34
+ fetch: app.fetch,
35
+ hostname: config.listenInaddrAny ? '::' : '127.0.0.1',
36
+ port,
37
+ serverOptions: {
38
+ maxHeaderSize: 1024 * 32,
39
+ },
40
+ });
41
+ }
42
+ } else {
43
+ logger.info(`🎉 RSSHub is running on port ${port}! Cheers!`);
44
+ logger.info(`🔗 Local: 👉 http://localhost:${port}`);
45
+ if (config.listenInaddrAny) {
46
+ for (const ip of hostIPList) {
47
+ logger.info(`🔗 Network: 👉 http://${ip}:${port}`);
48
+ }
16
49
  }
17
- }
18
50
 
19
- const server = serve({
20
- fetch: app.fetch,
21
- hostname: config.listenInaddrAny ? '::' : '127.0.0.1',
22
- port,
23
- serverOptions: {
24
- maxHeaderSize: 1024 * 32,
25
- },
26
- });
51
+ server = serve({
52
+ fetch: app.fetch,
53
+ hostname: config.listenInaddrAny ? '::' : '127.0.0.1',
54
+ port,
55
+ serverOptions: {
56
+ maxHeaderSize: 1024 * 32,
57
+ },
58
+ });
59
+ }
27
60
 
28
61
  export default server;
@@ -55,6 +55,10 @@ const middleware: MiddlewareHandler = async (ctx, next) => {
55
55
  // Doesn't hit the cache? We need to let others know!
56
56
  await cacheModule.globalCache.set(controlKey, '1', config.cache.requestTimeout);
57
57
 
58
+ // let routers control cache
59
+ ctx.set('cacheKey', key);
60
+ ctx.set('cacheControlKey', controlKey);
61
+
58
62
  try {
59
63
  await next();
60
64
  } catch (error) {
@@ -1,4 +1,5 @@
1
1
  import { MiddlewareHandler } from 'hono';
2
+ import { routePath } from 'hono/route';
2
3
  import { getDebugInfo, setDebugInfo } from '@/utils/debug-info';
3
4
 
4
5
  const middleware: MiddlewareHandler = async (ctx, next) => {
@@ -17,11 +18,12 @@ const middleware: MiddlewareHandler = async (ctx, next) => {
17
18
 
18
19
  {
19
20
  const debug = getDebugInfo();
20
- const hasMatchedRoute = ctx.req.routePath !== '/*';
21
- if (!debug.routes[ctx.req.routePath] && hasMatchedRoute) {
22
- debug.routes[ctx.req.routePath] = 0;
21
+ const rPath = routePath(ctx);
22
+ const hasMatchedRoute = rPath !== '/*';
23
+ if (!debug.routes[rPath] && hasMatchedRoute) {
24
+ debug.routes[rPath] = 0;
23
25
  }
24
- hasMatchedRoute && debug.routes[ctx.req.routePath]++;
26
+ hasMatchedRoute && debug.routes[rPath]++;
25
27
 
26
28
  if (ctx.res.headers.get('RSSHub-Cache-Status')) {
27
29
  debug.hitCache++;
@@ -23,6 +23,7 @@ describe('header', () => {
23
23
  expect(response.headers.get('rsshub-node')).toBe('mock');
24
24
  expect(response.headers.get('etag')).not.toBe(undefined);
25
25
  etag = response.headers.get('etag');
26
+ expect(response.headers.get('x-rsshub-route')).toBe('/test/:id/:params?');
26
27
  });
27
28
 
28
29
  it(`etag`, async () => {
@@ -1,4 +1,5 @@
1
1
  import { MiddlewareHandler } from 'hono';
2
+ import { routePath } from 'hono/route';
2
3
  import etagCalculate from 'etag';
3
4
  import { config } from '@/config';
4
5
  import { Data } from '@/types';
@@ -24,6 +25,11 @@ const middleware: MiddlewareHandler = async (ctx, next) => {
24
25
  ctx.header('Access-Control-Allow-Origin', config.allowOrigin || new URL(ctx.req.url).host);
25
26
 
26
27
  await next();
28
+ const rPath = routePath(ctx);
29
+
30
+ if (rPath !== '/*') {
31
+ ctx.header('X-RSSHub-Route', rPath);
32
+ }
27
33
 
28
34
  const data: Data = ctx.get('data');
29
35
  if (!data || ctx.res.headers.get('ETag')) {
@@ -80,7 +80,7 @@ const middleware: MiddlewareHandler = async (ctx, next) => {
80
80
 
81
81
  // sort items
82
82
  if (ctx.req.query('sorted') !== 'false') {
83
- data.item = data.item.sort((a: DataItem, b: DataItem) => +new Date(b.pubDate || 0) - +new Date(a.pubDate || 0));
83
+ data.item = data.item.toSorted((a: DataItem, b: DataItem) => +new Date(b.pubDate || 0) - +new Date(a.pubDate || 0));
84
84
  }
85
85
 
86
86
  const handleItem = (item: DataItem) => {
@@ -114,4 +114,12 @@ describe('template', () => {
114
114
  expect(response.status).toBe(301);
115
115
  expect(response.headers.get('location')).toBe('/test/1');
116
116
  });
117
+
118
+ it(`api`, async () => {
119
+ const response = await app.request('/api/test');
120
+ expect(response.status).toBe(200);
121
+ expect(await response.json()).toEqual({
122
+ code: 0,
123
+ });
124
+ });
117
125
  });
@@ -14,6 +14,11 @@ const middleware: MiddlewareHandler = async (ctx, next) => {
14
14
  const ttl = (cacheModule.status.available && Math.trunc(config.cache.routeExpire / 60)) || 1;
15
15
  await next();
16
16
 
17
+ const apiData = ctx.get('apiData');
18
+ if (apiData) {
19
+ return ctx.json(apiData);
20
+ }
21
+
17
22
  const data: Data = ctx.get('data');
18
23
  const outputType = ctx.req.query('format') || 'rss';
19
24
 
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest';
1
+ import { describe, expect, it, vi } from 'vitest';
2
2
  import app from '@/app';
3
3
  import { config } from '@/config';
4
4
 
@@ -37,4 +37,27 @@ describe('registry', () => {
37
37
  expect(response.headers.get('cache-control')).toBe('no-cache');
38
38
  expect(await response.text()).toBe('ok');
39
39
  });
40
+
41
+ it('namespaces respects DISABLE_NSFW=true', async () => {
42
+ vi.resetModules();
43
+ vi.stubEnv('DISABLE_NSFW', 'true');
44
+
45
+ const { namespaces } = await import('./registry');
46
+
47
+ // All routes in all namespaces should not have nsfw features
48
+ for (const ns of Object.values(namespaces)) {
49
+ for (const route of Object.values(ns.routes)) {
50
+ expect(route.features?.nsfw).not.toBe(true);
51
+ }
52
+ }
53
+ expect(namespaces['2048']).toBeUndefined();
54
+ });
55
+
56
+ it('namespaces includes NSFW routes when DISABLE_NSFW=false', async () => {
57
+ vi.resetModules();
58
+ vi.stubEnv('DISABLE_NSFW', 'false');
59
+
60
+ const { namespaces } = await import('./registry');
61
+ expect(namespaces['2048']).toBeDefined();
62
+ });
40
63
  });