Commit Graph
7883 Commits
Author SHA1 Message Date
github-actions[bot] 771df8a0f6 style: auto format 2025-06-06 14:31:28 +00:00
chris zheng 62ae012cc7 feat(route/mangadex): add three new routes and modify one old route for mangadex.org (#18269)
* feat(namespace): add namespace for CJLU

* feat(route): Add route for graduate school of CJLU

为中国计量大学研究生院添加路由
支持将`教师通知`和`研究生通知`页面转化为 RSS 订阅源

* doc: modify discription of some params

修改参数描述

* fix(radar rule): modify radar rule

修改 radar 规则,以正确提供订阅源

* fix: add exception handling

增加异常处理

* chore: optimize conditional logic

优化判断逻辑

* Update lib/routes/cjlu/yjsy/index.ts

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* fix(radar rule): list all source choices

在 radar 规则中列出全部的类型
修改行尾符为 LF

* fix(example): correct example of the route

订正路由的案例

* chore: add missing namespace information

* fix(mangadex): resolve incorrect route detection

* chore: update route name and include myself as a maintainer

* feat(mangadex): add token retrieval utility base on config

* feat(mangadex): add utility to retrieve user configurations

Added a utility function `getFilteredLanguages` to retrieve filtered languages based on the current user's configuration.

* feat: add `getMangaMeta` utility to retrive metadata for a manga

* refactor: add utility to retrive chapter info for a manga

Original implementation by @vzz64 was embedded in modules.
Extracted the common logic into a standalone function for better code reusability and maintainability.

* refactor(feed util): move the fallback logic into function

Add a docstring to explain its usage

* doc(access util): add docstrings for key function

* refactor: purify result of function

Change result type from object to array by remove `total` param.

* feat(feed util): add support for alternative parameter type

- Add docstring for util functions
- Add a new combination function
- Improve code type inference

* refactor: move constants to separate files for better organization

* feat: modify the route for single manga

- **important**: add a prefix to the route for space for other routes in namespace, not compatiable to former route
- use integrated utility to retrieve details of a single manga

* refactor: move `token expire time` to constant

* docs(access): add Error docstring

* chore: make cover became thumbnail to save bandwidth and better display

* feat: add new route for user follow's list

- support reading, plan to read etc.
- add new optional param  to utility function

* fix: improve perfomance in retrieving manga's meta data

- if cover is needed, use the optional param `includes` to fetch in one request

* refactor: rearrange code

- skip some code for branch without cover needed

* docs: add description for route

* docs: add a detailed param description for route

- offer a default value for param

* feat: add a new constant

* feat: seperate util-function for better organization

- add docstring for `toQueryString`

* feat: add new utility function to fetch manga meta data in batch

* fix: use dynamic key to cache result

- otherwise it may get wrong result with diffrent types
- rearrange the code

* feat: add a new route for all user's followed mangas

* chore: add parameters' desctiption

- offer a more detailed example
- use local constant to maintance limit
- change some code's style

* style: change style in using utility function

* style: refactor query string construction for improved readability

* style: change a variable's name

* feat: add new route for sepecific mdlist feed

* fix: use correct time for pubDate

* fix: use `image` prop to display thumbnail instead of `description`

* refactor(mangadex): improve access token retrieval logic and handle refresh token errors

* refactor(mangadex): replace getMangaMeta with getMangaMetaByIds for improved efficiency

* chore: modify route's decription

* fix: remove unnecessary nullish coalescing in description assignment

* fix: update access token retrieval to use client ID and secret instead of username and password

* fix: correct spellings in definition

* chore: remove unnecessary code

* fix: dedupe ids before fetch manga metas

- add `limit` param to get the full response

* fix: remove wrong suffix

* fix: remove unnecessary code

* chore: remove unnessary code

* fix: set manga and config feed's cache to not refreshable

* fix: remove filteredLanguages option

* fix: remove filteredLanguages option

* fix: add sort operation after dedupe

* style: add trailing comma

* fix: remove common params

* fix: remove unnecessary  code

* fix: remove route's unnecessary name prefix

* fix: change TTL for hot caches

* fix: remove docs for non-exist config

* refactor: fix lint issue for better readability

* fix: ensure cover image is only set if cover filename exists

---------
2025-06-06 22:29:13 +08:00
Kayandpengkai 5789c25726 feat(route): add bfl.ai announcements feed (#19286)
* feat(route): add bfl.ai announcements feed

* fix: address review comments from maintainer

* chore: remove duplicated route files from incorrect directory

---------

Co-authored-by: pengkai <penkai151@qq.com>
2025-06-06 21:36:51 +08:00
Tony 038848a73b feat(gov/customs): add latest docs (#19289)
* feat(gov/customs): add latest docs

* feat(gov/customs): add language property to response
2025-06-06 05:34:52 +08:00
Tony c6de9e45cb feat(civitai): add user article (#19290) 2025-06-06 05:21:15 +08:00
Tony 081d133a1f fix(route/google): fix search (#19288) 2025-06-06 04:09:18 +08:00
Unknown c150211749 feat(twitter): add option to number the medias (#19050)
* feat(twitter): add number to the media

* (feat/twitter): add option `mediaNumber` to number the medias in tweets

--------
2025-06-06 01:08:59 +08:00
Tony e10c3a51ee feat(logger): add debug logging for matched routes (#19287) 2025-06-05 19:55:45 +08:00
Tony f1117bcd1e fix(route/radio): use new api (#19283) 2025-06-05 02:30:56 +08:00
Ethan Shen e98eef7d34 feat(route): add 国立健康危機管理研究機構感染症発生動向調査週報 (#19282) 2025-06-05 01:21:18 +08:00
AiraNadihandAiraNadih 9405ac50b6 feat(route/everia): add latest, category and search routes (#19280)
* feat(route/everia): add latest, category and search routes

* fix(route/everia): correct category and search routes

---------

Co-authored-by: AiraNadih <AiraNadih@users.noreply.github.com>
2025-06-04 23:44:02 +08:00
AiraNadihandAiraNadih 89fe12969f refactor(twitter): reduce token lock time from 24h to 1h (close #17580) (#19274)
Co-authored-by: AiraNadih <AiraNadih@users.noreply.github.com>
2025-06-04 22:45:53 +08:00
sineeeee 4e958708f1 feat(konachan): add SFW option for konachan via /sfw prefix (#19273)
* update post.ts

* update parameter description

* update

* update

* update
2025-06-04 16:12:22 +08:00
KTachibanaM d6c1b77142 feat: add route for everia.club (#19259)
* feat: add route for everia.club

* Apply suggestions from code review

---------
2025-06-04 12:42:25 +08:00
纪华裕 401c0c563f feat(cache): enhance tryGet method to support generic return types (#19261) 2025-06-03 09:37:43 +08:00
Tony c47d19c01d feat(route/meta): ai blog (#19258) 2025-06-03 00:41:22 +08:00
Ethan Shen ca98581d8f feat(route): add Bandisoft History (#19247)
* feat(route): add Bandisoft History

* fix: add verification
2025-06-03 00:22:36 +08:00
DIYgod 7b0a74e1c8 fix(bilibili): dynamic description 2025-06-02 11:19:32 +08:00
zytomorrow 6b0c1abf5c fix(route): /gov/sichuan/deyang/govpublicinfo/绵竹市 (#19246) 2025-06-01 22:11:59 +08:00
Ethan Wong af2252a8c5 feat(route): add hedwig.pub (#19245)
* feat(route): add hedwig.pub

* feat(route): remove deprecated entry

* docs: add author info from #4122
2025-06-01 04:57:19 +08:00
Andvari 2d7aeebbb5 fix(route/stheadline): Adapt to website redirect (#19229)
* fix(route/stheadline): Adapt to website redirect

* .

* fix: add back radar
2025-05-31 22:57:00 +08:00
DIYgod 2dce2e32dd feat: docs sorting and auto popular 2025-05-31 17:10:01 +08:00
纪华裕 1278fdcacd feat(route/thzt): add route and namespace for thzt blog integration (#19244)
* feat(thzt): add route and namespace for thzt blog integration

* fix(thzt): limit the number of articles fetched to 15
2025-05-30 23:08:36 +08:00
DIYgod 025cd6542c fix(github): activity allow empty 2025-05-29 17:52:16 +08:00
DIYgod 5b84d70d27 fix: smzdm 2025-05-29 17:19:00 +08:00
TonyRL 71fc4f44c2 feat(route/youtube): add radar 2025-05-29 05:01:45 +00:00
DIYgod 44aba27033 fix: smzdm 2025-05-29 12:51:04 +08:00
DIYgod 645c202308 fix: zhihu redirection 2025-05-29 12:12:16 +08:00
DIYgod b39937a123 fix: zhihu hot 2025-05-29 12:08:20 +08:00
DIYgod 314f8a6a87 feat: retry bilibili dynami with different cookie 2025-05-29 10:49:16 +08:00
Tony 4cd3cabc2d feat(route): add zongheng (#19226)
* feat(route): add zongheng

* Update lib/routes/zongheng/detail.ts

* Update detail.ts
2025-05-29 07:11:00 +08:00
Tony 5cf663659a fix: add 'networkidle2' option to waitUntil in getPuppeteerPage 2025-05-29 04:02:55 +08:00
DIYgod cf8e3bdf45 feat: bilibili new puppeteer 2025-05-28 22:07:44 +08:00
DIYgod 27305f107a test: fix puppeteer 2025-05-28 21:26:06 +08:00
DIYgod bf3649324b fix: puppeteer proxy regex 2025-05-28 21:12:21 +08:00
DIYgod afbc797334 fix: xsijishe ua 2025-05-28 15:00:09 +08:00
DIYgod 34c43eaa0d fix: puppeteer proxy 2025-05-28 12:51:43 +08:00
Tony 24f8ac2aef feat(route/picuki): update for tiktok (#19214)
* feat(route/picuki): update for tiktok

* fix(route/picuki): enhance parameter descriptions for clarity

* fix(route/picuki): update video link format for TikTok media
2025-05-28 05:06:53 +08:00
Yuan Xu 33336a95d5 fix: repair some zhihu routes (#19183) 2025-05-28 02:46:52 +08:00
AiraNadihandAiraNadih ed47f43284 fix(route/kemono): improve JSON field parsing with nested string handling (#19190)
* fix(route/kemono): improve JSON field parsing with nested string handling

* feat(route/kemono): add announcements and fancards support (close #16269)

* refactor(route/kemono): restructure codebase with constants extraction and type definitions

* Update lib/routes/kemono/index.ts

---------

Co-authored-by: AiraNadih <AiraNadih@users.noreply.github.com>
2025-05-28 02:26:32 +08:00
Andvari 7bdedfebdd fix(route/thepaper): enhance pubDate handling with relative date parsing (#19074) 2025-05-27 22:23:22 +08:00
DIYgod da1175d400 feat: zhihu check-cookie 2025-05-27 20:30:20 +08:00
DIYgod 378226480d fix: xsijishe 2025-05-27 19:32:10 +08:00
DIYgod 2824c13fc3 feat: picnob ua 2025-05-27 17:51:15 +08:00
DIYgod 5cc315f6c2 feat: bilibili check cookie api 2025-05-27 13:36:48 +08:00
DIYgod 8520db3e13 feat: api route (#19209)
* feat: api route

* test: api route
2025-05-27 13:21:27 +08:00
Tony 964a386b72 fix(route/now): use api (#19208) 2025-05-27 04:34:01 +08:00
Tony 5596129d91 fix(route/picnob): clean up (#19207) 2025-05-27 01:15:09 +08:00
Jeff Ma 4d156c4f97 fix: /xueqiu/user by using puppeteer (#18779)
* fix xueqiu cookie

* revert xueqiu cookies

* fix xueqiu

* xueqiu refactor

* refactor code
2025-05-27 00:49:48 +08:00
Cason Kervis 11b1d3c162 feat(route/lenovo/drive): add lenovo drive route (#19198)
* feat(route/lenovo/drive): add lenovo drive route

* fix: fix timezone

* fix: using path join
2025-05-26 22:18:28 +08:00