Commit Graph
8556 Commits
Author SHA1 Message Date
chesha1 1c5e4b3702 fix(route/openai): 重构 research 路由,使用 RSS 源替代已失效的 TWILL API (#21309)
* fix(route/openai): 重构 research 路由,使用 RSS 源替代已失效的 TWILL API

- 移除旧的 getApiUrl 和 parseArticle 函数
- 为 fetchArticles 添加 category 过滤参数
- 提取文章作者信息
- 清理未使用的依赖(got, raw, renderToString)

* fix(route/openai): 使用 parseDate 解析 pubDate 日期字符串

* fix(route/openai): 使用重定向后的 URL 作为文章链接

使用 ofetch.raw() 获取响应,捕获重定向后的最终 URL,
避免输出中包含会被重定向的旧链接。

* fix(route/openai): 补全 URL 尾部斜杠以避免 301 重定向

在请求文章详情前为 URL 补上尾部斜杠,直接请求最终地址,
避免每篇文章都触发一次 301 重定向,减少不必要的 HTTP 请求。
2026-03-06 13:53:14 +08:00
Lipeng 6e2ca63189 feat(route): add Meritalk latest articles (#21282)
* feat: add route and namespace for MeriTalk articles

* feat: update articles route to support pagination and add description rendering

* feat: enhance articles route with improved description and error handling

* feat(meritalk): add articles route with pagination limit

- Add latest articles route for Meritalk
- Update route example and parameter description
- Implement pagination limit to avoid Cloudflare anti-bot

* fix(meritalk): remove nums param and fetch only first page

* fix(meritalk): update route category to new-media

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

* fix(meritalk): remove the post-processing of items and modify some of the logic in the handler

- Remove unnecessary sorting.
- Remove custom limit logic.

---------
2026-03-05 11:41:55 +08:00
Tony c09dacac5b feat(api): add cache probing (#21300)
* feat(api): add cache probing

* fix(tests): correct query parameter from 'path' to 'requestPath' in status tests

* feat(cache): add has to workers kv
2026-03-05 02:36:53 +08:00
github-actions[bot] 1093ce6522 style: auto format 2026-03-03 20:45:21 +00:00
Hualiang 4dec5ee309 feat(route): add gamersky.com user dynamics route (#21279)
* add user.ts

* Replace substring with slice.

* fix something
2026-03-04 04:44:46 +08:00
Radon Rosborough bcba35b41c feat(route): add aschmelyun.com blog route (#21271) 2026-03-04 03:48:13 +08:00
Dzming LiandTony 0ac1e409d8 feat(route/gcores): add user content routes with filtering (#21258)
* feat(route/gcores): add user content routes with filtering

- Add user-talks route for user social posts, excluding podcasts and videos
- Add user-radios route for user podcasts with exclude_albums parameter to filter out specific albums
- Update cache middleware to include exclude_albums in cache key for proper cache separation

* chore(gcores): appease codefactor by simplifying radios handler

* Update lib/routes/gcores/user-radios.ts

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

* Update lib/routes/gcores/user-talks.ts

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

* fix: address PR review - add maintainer ID and remove inferrable types

* refactor(route/gcores): replace exclude_albums with album category for common param filtering

---------
2026-03-04 03:30:48 +08:00
Tony 8043a5a819 style: update oxlint to use simple-import-sort 2026-03-04 03:13:57 +08:00
霁岫微岚 b6660ed585 fix(route): update ncu jwc selector (#21250)
* fix(university): update ncu jwc selector for new site version

* fix(university): update ncu jwc selector for new site version

* fix(ncu): use config.trueUA to comply with Rule 21

* fix(ncu): use config.trueUA to comply with Rule 21

* fix(ncu): simplify URL handling and fulfill route metadata
2026-03-04 02:08:42 +08:00
chouryandchoury fc5d346451 fix(route): 8kcos selectors for latest/cat/tag pages (#21269)
* fix(route): 8kcos selectors for latest/cat/tag pages

* fix: add maintainer info from #7237

* fix: use wordpress api

---------

Co-authored-by: choury <choury@users.noreply.github.com>
2026-03-03 06:17:34 +08:00
Dzming Li 18548f831d fix(route/zhihu): fix missing images in answers and zhuanlan routes (#21257)
Images were not displaying in RSS feeds because the processImage function
was not being called to convert Zhihu's special image attributes
(data-actualsrc, data-original) to standard src attributes.
2026-03-02 23:16:19 +08:00
karasu a1d266888c fix(route/ff14): 修复部分「公告」条目缺失的问题 (#21261)
* fix(route/ff14): 追加「公告」类型编码

* style(ff14): rename type_number to typeNumber for camelCase consistency
2026-03-02 13:21:57 +08:00
github-actions[bot] c205eeb107 style: auto format 2026-03-01 19:10:30 +00:00
AndvariandCopilot 2f9d18ccea fix(route/reuters): Fix empty authors & prevent unintended fallback (#21256)
* fix(route/reuters): Fix empty authors & prevent unintended fallback

* Update lib/routes/reuters/common.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix error handling for FetchError in common.tsx

* Update common.tsx

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-02 03:09:53 +08:00
chouryandchoury 1520f4f30c fix(route/zhihu): use v4 API for daily route (#21255)
The homepage of daily.zhihu.com was redesigned and no longer contains
.box elements with story links. Additionally, the v7 /stories/latest
endpoint now requires authentication (returns 401).

Fix by switching to the publicly accessible v4 API:
- GET /api/4/stories/latest to list today's stories
- GET /api/4/story/:id for full story content (still public)

Also set antiCrawler: false since the v4 API is open.

Co-authored-by: choury <choury@users.noreply.github.com>
2026-03-02 01:32:46 +08:00
CaoMeiYouRen233 ea2fefd5e6 feat: 添加 Iwara 排行功能,支持视频和图片的排序与筛选 (#21251)
* feat: 添加 Iwara 排行功能,支持视频和图片的排序与筛选

* fix: 更新维护者信息

* feat: 使用 Puppeteer 优化 Iwara 排行数据获取

* fix: 修复链接生成逻辑以正确处理 slug

* refactor: 提取公共常量和函数到 utils.ts 文件以简化代码结构

* fix: 修复 Iwara URL 以确保正确访问网站
2026-03-01 18:08:40 +08:00
Bush2021 144d60b80f fix(route/423down): exclude ad entries (#21254)
Some list entries are ad posts that redirect to
external domains with problematic TLS certificate
chains, causing detail fetch to fail and break the
route.
2026-03-01 06:07:14 +08:00
Thomas 7465febbdf feat(route/youtube): Allow configuring custom embed url (#21248) 2026-03-01 00:28:45 +08:00
heisenshark e935df5bc6 feat(route): add 4chan (#21249)
* feat: added 4chan route

* feat: renamed board to catalog

* refactor(route/4chan): added util.ts for handling catalog processing

* feat(route/4chan): added break after the reply count

* refactor(route/4chan):functions to arrow functions

* feat(route/4chan): utc pubdate, route params to parameters

* fix(route/4chan): removed explicit category set, changed radar rules

* fix(route/4chan): changed pubdate handling to timezone>parseDate

* fix(route/4chan): added spoilers back, changed links to absolute URLs, changed html stripping in title, removed force timezone setting, removed referrerpolicy from img

* fix(route/4chan): fix https typo

* fix(route/4chan): radar route namespace prefix

* Apply suggestions from code review
2026-03-01 00:20:52 +08:00
Tony 1acb805799 style: migrate eslint to oxlint (#21224)
* chore: add oxlint support

* style: apply autofix

* style: apply autofix for toSorted

* style: use alternative api for nsfw-flag jsPlugins

* fix: git diff

* fix: codeql

* test: console.log

* style: update lint workflow to use Checkstyle SARIF converter

* style: remove debug log from extractDateFromURL function

* chore: use oxlint-json-to-sarif

* test: console.log

* test: remove console.log

* test: update cookie data expectation in getCookies test

https://github.com/mccutchen/go-httpbin/pull/235 breaks this

* style: type-aware linting

* style: enable type-aware linting for oxlint
2026-02-28 21:23:11 +08:00
shcw0405and蔡旭 5ddd2080b0 fix(cursor/changelog): fix changelog route (#21237)
* fix cursor/changelog

* fix(cursor/changelog): deduplicate feed entries

---------

Co-authored-by: 蔡旭 <caixu@caixudeMacBook-Air.local>
2026-02-27 03:18:59 +08:00
github-actions[bot] e21e74addc style: auto format 2026-02-25 16:54:10 +00:00
9k001 9cb29513b4 fix(route/zhihu): enable processImage for people/answers to fix lazy-loaded images (#18671) (#21153) 2026-02-26 00:52:06 +08:00
Mervyn ZhanandTony 79c8adcca7 fix(route/bbc): deal with the mixed bbc news data (#21228)
* fix(route/bbc): deal with the mixed bbc news data

fix #21227

* Update lib/routes/bbc/utils.tsx

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

---------
2026-02-25 21:09:48 +08:00
Summer⛱ b11b9e727a feat(route): 豆瓣即将播出的剧集 (#21214)
* feat(route): 豆瓣即将播出的剧集

* fix: 增加反爬/限频错误处理

* fix(route): address review feedback for douban tv coming route

- switch route config from query params to path params (:sortBy/:count)
- replace globalThis.crypto with node:crypto webcrypto
- use config.cache.routeExpire instead of hardcoded cache ttl
- normalize naming to camelCase (sortBy/requestCount)
- replace newline rendering with HTML <br/> in description
- simplify renderDescription without array join

* Apply suggestion from TonyRL

---------
2026-02-25 20:48:40 +08:00
occam-7 7d2bd7ced1 feat(route/bestblogs): Add route for weekly selection (#21226)
* feat(route/bestblogs): Add route for weekly selection

* fix(route/thepaper): Linebreak style
2026-02-25 16:07:01 +08:00
loopy03 8be22cb8f6 feat: add route for Le Phocéen (#21205)
* feat: add route for Le Phocéen

* fix: use embedded json

* Fix: lint errors (imports order and parseDate)
2026-02-23 20:04:09 +08:00
github-actions[bot] 83391205cb style: auto format 2026-02-23 01:28:59 +00:00
YuruShiMaShiMaRin ff4ae56a20 feat(comic-fuz.com): add new routes (#21193)
* comicfuz pr

* fix lint

* fix lint error

* ofetch support

* 1

* fix some question

* fix some question

* using TonyRL‘s suggetion version 1

* ver 2

* fix some question

* ver 3

* 非必要的修改 最后的版本

* fix: missing rename

* fix: remove duplicated name

---------
2026-02-23 09:27:19 +08:00
Tony 7785a7bde4 style: update eslint rules (#21207)
* style: update eslint rules

* style: fix prefer-object-spread

* style: fix no-lonely-if

* fix: typescript-eslint/no-unnecessary-template-expression

* fix: sort import

* style: apply file filtering to config presets

* revert: changes on pkg

* style: revert

* style: use defineConfig

* style: reorder js plugin in eslint config

* chore: remove obsolete override

* style: fix CodeQL initialization to ensure language matrix is used
2026-02-23 08:17:37 +08:00
Tsung-Han Yu f7bea67c63 fix(route): remove elements for screen readers (#21206) 2026-02-23 04:20:25 +08:00
Tony 3349076afe fix(route/anthropic): update selectors (#21200) 2026-02-22 00:46:35 +08:00
TROJAN 3ef013659e fix(route/showstart): enable allowEmpty to allow subscribing to artists who currently have no performances (#21198) 2026-02-21 09:47:35 +08:00
flameleafandgithub-actions[bot] 12e5f3ef71 feat(route/chub): support markdown and move thumbnail image to description (#21184)
* Update api url

* remove trailing '

* feat(route/chub): support markdown and move thumbnail image to description

* style: auto format

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-21 05:34:53 +08:00
shcw0405and蔡旭 0b056eba75 fix(route/manus): fix blog route (#21195)
* fix(route/manus): fix blog route

* style: refactor with flatMap and map per review

---------

Co-authored-by: 蔡旭 <caixu@caixudeMacBook-Air.local>
2026-02-21 02:30:18 +08:00
Tony ba0f1ad292 style(eslint): fix no-unassigned-vars no-useless-assignment preserve-caught-error (#21175)
* fix: fix no-unassigned-vars

* fix: fix preserve-caught-error

* fix: fix no-useless-assignment

* fix: update variable types for better type safety

* fix: replace nullish coalescing with logical OR for limit assignment

* fix: add DataItem type import for better type safety
2026-02-18 22:25:14 +08:00
Tony a56e6299d6 feat(route/ainvest): rework article and news (#21154) 2026-02-15 21:47:54 +08:00
Tony da15d11d1d chore: replace postlight/parser with jocmp/mercury-parser (#21152) 2026-02-15 01:27:25 +08:00
github-actions[bot] 97e8291140 style: auto format 2026-02-14 16:25:56 +00:00
occam-7 1db6d77c17 feat(route/thepaper): Add route for government accounts (#21151)
* feat(route/thepaper): Add route for government accounts

* fix(route/thepaper): object-shorthand

* fix(route/thepaper): object-shorthand
2026-02-15 00:23:30 +08:00
CutCut 4c4339c625 feat(route/twitter): support official api with user credentials (#21139)
* feat(route/twitter): support official api with user credentials (act as a logged user) support

* fix: update namespace docs

* fix(route/twitter): use optional chaining for access tokens
2026-02-14 13:32:44 +08:00
github-actions[bot] da080891d9 style: auto format 2026-02-13 17:25:16 +00:00
TonyandCopilot f1164b516b feat(route/bbc): topic (#21140)
* feat(route/bbc): topic

* feat(route/bbc): clean item links by removing query parameters

* feat(route/bbc): add sport

* feat(route/bbc): refactor content fetching logic to use fetchBbcContent utility

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat(route/bbc): improve content description fallback logic

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-14 01:23:35 +08:00
Qiang Huang 91ff6e28df fix(route/smartlink): Remove HTML from the title for cnbc (#21130) 2026-02-13 16:00:58 +08:00
Yuzhong Zhangandbetterandbetterii e43f570306 feat(route/sina): add finance rollnews (#21124)
Co-authored-by: betterandbetterii <betterandbetterii@github.com>
2026-02-12 19:56:49 +08:00
Chris Sauermann 6e16f90bfb feat(route): add elamigos games route (#21111)
* feat(route): add elamigos games route

* fix(route): update elamigos security vulnerabilities + codefactor complex method error

* fix(route): update elamigos reduce extractGames complexity

* fix(route): update elamigos  required changes to adhere to coding standard

* fix(route): update elamigos remove parseLimit, let user decide limit, default at 40
2026-02-11 22:41:08 +08:00
MMA fbe69a773a fix(route/dailypush): author and date (#21110) 2026-02-11 20:36:07 +08:00
Qiang Huang 4b9ef7b723 fix(route/smartlink): API returns application/json (#21112) 2026-02-11 17:52:25 +08:00
Tony 2f6303fcaf feat(route/twitter): official api support (#21109)
* feat(route/twitter): official api support

* fix: update namespace docs
2026-02-10 22:32:13 +08:00
PieterandPieter Hollander 48d6b1a42a fix(route/linkedin): construct link for reposts from activity URN (#21105)
Co-authored-by: Pieter Hollander <git@pieterhollander.nl>
2026-02-10 03:47:22 +08:00