Commit Graph
6248 Commits
Author SHA1 Message Date
Tony 0a506a9e67 feat(route): wellcee (#15433) 2024-05-02 03:44:06 +08:00
Zhoukun Cheng 39e234f427 feat(route): add new LinkedIn route params (#15395) 2024-05-01 23:01:15 +08:00
Bin Wang e2f463a7d2 fix(radar): fix source for HackerNews (#15429) 2024-05-01 22:48:41 +08:00
Felix Hsu d186a93c65 fix(route): thecatcity term not working when it is empty (#15416)
* fix thecatcity term empty

* update the js to latest site version

* fix: rename namespace

---------
2024-05-01 21:31:59 +08:00
github-actions[bot] 1d50e10f9e style: auto format 2024-05-01 13:19:19 +00:00
Andvari dbd128c087 fix(route/copernicium): Add category (#15428)
* Update index.ts

* Update index.ts
2024-05-01 21:17:45 +08:00
karasuandTony b3f0276fc0 feat(route): fanbox (#15418)
* feat(route): fanbox

* fix

* Update lib/routes/fanbox/index.ts

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

* replace `got` with `ofetch`

* Update lib/routes/fanbox/utils.ts

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

---------
2024-05-01 11:15:47 +08:00
Tony 457a47fc43 feat(route): yenpress (#15419)
* feat(route): yenpress

* fix: duplicate category
2024-04-30 23:19:07 +00:00
github-actions[bot] 8c802bbea1 style: auto format 2024-04-30 16:38:47 +00:00
Andvari bb5a2c7640 feat(route): Create ttv (#15380)
* feat(route): Create ttv.

* .

* Update index.ts

* Update index.ts
2024-05-01 00:37:10 +08:00
github-actions[bot] 06fafccf0b style: auto format 2024-04-30 15:44:50 +00:00
Andvari 6df109ad0e feat(route): Copernicium (#15389)
* feat(route): Copernicium

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts
2024-04-30 23:43:11 +08:00
Bangwuandgithub-actions[bot] 36077f2e0a fix(route): fix crossbell character and the following output (#15417)
* fix: following.ts

* fix: character.ts

* Update following.ts

* style: auto format

* for source and index route

* style: auto format

* remove change

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-30 21:51:43 +08:00
standroot 6f97f7a113 feat(route): add olevod.one (#15405)
* feat(route): add olevod.one

* fix: feed category

---------

Co-authored-by: root <root@debian.st>
2024-04-30 02:23:23 +08:00
Tony 715bad0663 feat(route): daily.dev user (#15403) 2024-04-30 01:44:56 +08:00
Ethan Shen 3cb4b741ae fix(route): 安徽省科学技术厅 (#15402)
* fix(route): 安徽省科学技术厅

* fix typo

* Update lib/routes/gov/ah/kjt.ts

---------
2024-04-30 01:28:55 +08:00
tong chaoandgithub-actions[bot] e54a5f1083 feat(route): douyu room api update with fallback (#15401)
* feat(route): douyu room api update with fallback

* style: auto format

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-29 21:44:09 +08:00
github-actions[bot] cc044ac533 style: auto format 2024-04-28 23:59:06 +00:00
flameleafandTony d4a88c731a feat(route): Add Chub (#15298)
* Create characters.ts

* Create namespace.ts

* Update characters.ts

* remove uncessary ctx

* Update lib/routes/chub/characters.ts

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

* Update lib/routes/chub/characters.ts

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

* Update lib/routes/chub/characters.ts

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

* Update lib/routes/chub/characters.ts

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

* Moved topics to category field

* replaced got with ofetch + query

* Update characters.ts

* Update lib/routes/chub/characters.ts

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

---------
2024-04-28 23:57:33 +00:00
karasu b566ebbe3a fix(route): weibo (#15398) 2024-04-28 17:27:18 +08:00
Tony 1c6981297e fix(route): sohu mp (#15390)
* fix(route): sohu mp

* fix: remove unwanted element
2024-04-28 05:55:46 +08:00
CaoMeiYouRen 43c041ef11 fix(route): 修复 hellogithub 路由错误 (#15388)
* fix(route): 修复 全国气象预警 为空的问题

* fix(route): 修复 hellogithub 路由错误

* fix(route): 优化 HelloGitHub title

* fix(route): 修复 hellogithub 路由

* fix: revert changes on readable-social

---------
2024-04-27 21:36:40 +08:00
Andvari b55cb25287 fix(route/sjtu/yzb): Correct title and date. (#15387) 2024-04-27 20:18:29 +08:00
Nick22nd 80e3ceda53 feat(route): add ollama models (#15383)
* feat(route): add ollama models

* fix some problems
2024-04-27 02:59:13 +08:00
HyperCherry 14bbdc4e86 fix(route): 四川工商学院 - 学院新闻 (#15381)
* fix(route): fixed stbu docs & radar

* fix(route): removed target properties in radar
2024-04-26 22:32:38 +08:00
DIYgod 7e87a4823e feat: add layout and use sn pro font 2024-04-26 08:59:44 +08:00
Ethan Shen 97339cf78f feat(route): add 网猴线报 (#15372) 2024-04-26 07:32:09 +08:00
Tony e50b2c6515 feat(route): add back kpmg (#15373) 2024-04-26 07:10:46 +08:00
wrvsrx 9f0c08e629 chore(deps): mark tosource as production dependency (#15356)
Close #15093. Otherwise, `pnpm build` would fail after `pnpm install --production`
2024-04-25 20:53:56 +08:00
github-actions[bot] c68e2b4af8 style: auto format 2024-04-25 12:19:49 +00:00
f62f12da1c feat: add route /gov/zj/search/:websiteid?/:word/:cateid? (#15359)
* feat: 浙江省人民政府-统一搜索结果

* refactor: 浙江省人民政府-统一搜索结果-代码规范修正、description字段补充

* Update lib/routes/gov/zj/search.ts

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

* Update lib/routes/gov/zj/search.ts

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

* Update lib/routes/gov/zj/search.ts

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

---------

Co-authored-by: lihaoyu <lihaoyu@unicoresoft.com>
2024-04-25 20:18:02 +08:00
Tony 9550a9f426 feat(route): add back lianxh (#15365)
* feat(route): add back lianxh

* fix: feed title
2024-04-24 21:53:46 +00:00
Tony 8a11f0e756 fix(route): caixin weekly (#15364) 2024-04-25 04:57:55 +08:00
Tony 768e9915c1 fix(route): remove got.all usage in baai (#15363) 2024-04-25 03:50:21 +08:00
Tony 19dd9609f0 fix(route): usenix (#15362) 2024-04-25 02:40:32 +08:00
Tony aba18ac44a fix(route): douyin live (#15361) 2024-04-25 00:53:25 +08:00
GoDotDotDot 4787b2c726 fix(route): tweet detail not work (#15355) 2024-04-24 19:17:18 +08:00
github-actions[bot] a508a1c706 style: auto format 2024-04-24 10:46:22 +00:00
Bangwu fb0b142b5a feat(route): add jwc notice (#15357)
* add jwc

* fix Move function definitions to the highest possible scope.
Warning

* Fix code non-standard format

* Fix code non-standard format
2024-04-24 18:44:37 +08:00
NyaaaDoge df51c93677 feat(route): add steam community hub (#15346)
* feat(route): add steam community hub

* Update lib/routes/steamcommunity/appcommunityfeed.ts

* Update lib/routes/steamcommunity/appcommunityfeed.ts

* Move to route folder Steam

---------
2024-04-24 17:33:56 +08:00
Tony 41c6861d88 fix(got): posting form as x-www-form-urlencoded (#15348) 2024-04-24 00:10:53 +08:00
Ethan Shen 26dcea0599 fix(route): 中国人民银行 (#15347) 2024-04-23 22:11:39 +08:00
MachX 6faaecd131 feat(route): add colamanga (#15343) 2024-04-23 21:51:20 +08:00
Rongrong 690e91c59d fix(route/{telegram/channel,wechat/tgchannel}): broken links (#15332)
route/telegram/channel:
Since 2024/4/20, t.me/s/ mistakenly have every '&' in **hyperlinks**
replaced by '&amp;'. The characteristic of a hyperlink is [onclick]
(pop-up confirmation), which is not present in ordinary links. This is a
workaround to fix the issue until Telegram fixes it.

route/wechat/tgchannel:
Since 2024/4/20, t.me/s/ mistakenly have every '&' in **hyperlinks**
replaced by '&amp;'. wechat-mp will take care of this, so no need to fix
it here. However, once the bug is eventually fixed, all guid will be
changed again. Considering that this is almost certain to happen, let's
break guid consistency now by using normalized URL from wechat-mp as
guid to avoid similar issues in the future.

Signed-off-by: Rongrong <i@rong.moe>
2024-04-23 21:22:19 +08:00
teapot1deandgithub-actions[bot] d2e8cd65c5 fix: date parsing bug in jwc.ts (#15326)
* 添加了新的RSSHub路由,支持Radar ,以及修改了对应的文档

新增了针对南昌大学教务处通知的RSSHub路由,支持Radar。
同时修改了RSShub文档

* Removed redundant settings and fixed the year.

删去了多余的代码,更正了正确的年份

* 修改radar.js来修复问题

原来的radar无法正确识别网站,原来是url错误了,现在已经更改

* Update jwc.js

* Refactor jwc.ts and remove unused files

* Update dependencies

* Refactor jwc.ts and remove unused files

* Refactor jwc.ts and update newsDate calculation

* Optimized date retrieval code: consolidated year and month retrieval into a single line

* style: auto format

* Refactor jwc.ts: Consolidate date retrieval code

* Revert "Refactor jwc.ts: Consolidate date retrieval code"

This reverts commit 353f70745cff2eff950d115a518b9f5750a4b1c7.

* Revert "Optimized date retrieval code: consolidated year and month retrieval into a single line"

This reverts commit e38bc31ab412b79842e74b8c86a1fe39277e2ca4.

* Refactor jwc.ts: Consolidate date retrieval code and optimize newsDate calculation

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-23 18:15:56 +08:00
Ethan Shen fb97e6d554 feat(route): add 北京师范大学经济与工商管理学院MBA (#15330) 2024-04-22 22:36:25 +08:00
Andvari f75997f935 fix(route/tencent): Adapt to video pages. (#15328) 2024-04-22 20:54:00 +08:00
storytellerF 53c514f6a6 fix(route): namespace issue (#15327) 2024-04-22 17:43:03 +08:00
Henry Wang 3f41bdeb9d fix: missing pubDate causing Al Jazeera failed to build (#15324) 2024-04-21 23:30:16 +01:00
Jaya dc4c5c8299 feat: fix gxmzu rss support && fix njxzc rss support && fix jou rss support (#15253)
* feat: Enhance link resolution and content selection

- Update utils/index.ts to check for non-empty redirect URLs before assignment.
- Modify yjs.ts and ai.ts to select content using a higher-level ID '#vsb_content' for more comprehensive data extraction.
- Ensure all relative URLs within content are transformed into absolute URLs to improve link accessibility and reliability in RSS feeds.

* feat(njxzc/utils/index.ts): Enhance link resolution and handle specific access restrictions

- Replace direct string manipulations with conditional checks for 'response.redirectUrls'.
- Implement checks for '.wp_error_msg' to manage content access based on IP restrictions.
- Remove 'replaceAll' function usage to improve handling of relative URLs in 'contentSelector.content'.
- Ensure robust handling of content that can't be directly previewed due to restrictions or missing permissions.

* feat(jou/utils/index): Enhance URL handling and integrate PDF viewing logic

- Replace usage of 'replaceAll' with conditional checks for 'response.redirectUrls' to ensure robust URL handling.
- Add logic to detect embedded PDF scripts in web content, setting descriptions appropriately when PDF content is detected.
- This update aims to improve the system's ability to handle different types of content securely and effectively, particularly enhancing how PDF files are managed within the application.

* feat: Replace got with ofetch in route handlers

- Updated /lib/routes/gxmzu, /lib/routes/jou, and /lib/routes/njxzc to use ofetch instead of got for HTTP requests.
- Adjusted redirection handling logic to align with ofetch's API and behavior.
- Ensured all route handlers now properly handle redirects by checking response status codes instead of relying on redirectUrls array from got.

This change enhances the reliability and maintainability of HTTP request handling across different university library routes by utilizing ofetch, which is more consistent with our current architecture and requirements.
2024-04-22 05:10:24 +08:00