Commit Graph
8626 Commits
Author SHA1 Message Date
HaZy-Gaming 92b8da23a9 fix(github): update topics route selector to fix empty route (#21560)
解决GitHub Topics路由"Error: this route is empty"问题。
2026-03-31 04:31:39 +00:00
Tony a2861cdd4f fix: update rss-parser patch to support other compressions (#21561) 2026-03-30 22:22:24 +00:00
Tony 7d2baa89e5 fix(routes): remove hard-coded UA and use header presets (#21559) 2026-03-31 00:40:26 +08:00
Luke D Williams 482ad1cb80 feat(route/locals): add content feed (#21542)
* feat(route/locals): add authenticated feed route

Add a Locals route with auth_token-based feed fetching, classic-to-beta URL fallback, and support for community, home, content, and content_plus feed views. Parse feed pages into RSS items using shared post selectors while surfacing clear errors when access is unavailable.

* feat(route/locals): add content feed

Add a Locals content route that uses the authenticated session-backed server functions instead of brittle page scraping. Support tier filters and media-type filters so paid and content-library posts can be subscribed to reliably.

* fix(route/locals): include content thumbnails

Use Locals preview and audio image fields so content and podcast entries expose thumbnails consistently. Render the image into item descriptions and standard image fields for better feed reader compatibility.

* fix(route/locals): include regular content posts

Keep Locals content feeds from dropping regular text and photo posts that arrive as no_content entries with real body content. Preserve image handling while leaving plus feeds unchanged when the source only returns five content-plus items.

* fix(route/locals): prefer content poster images

Prefer Locals poster-style preview images over raw first-frame captures when both are available. Keep the raw frame fallback for posts where the API does not expose a styled poster image.

* fix(route/locals): resolve runtime action ids

Derive the Locals feed action id from the current runtime assets instead of hardcoding build-specific server function ids. Tighten option validation with own-key checks and align the radar source with supported matching rules.

* fix(config): sort locals session settings

Move the Locals session env key and config blocks into alphabetical order so the route-specific configuration matches the repository's config layout rules.

* fix(config): reorder locals session settings

* fix(route/locals): simplify route and request handling

* fix(config): restore locals config ordering

* fix(config): sort security key entry

* fix(route/locals): adjust message clarity of path parameter necessity
2026-03-30 05:44:45 +08:00
Tony 6ae3f644bf fix(route/kyodonews): update page selectors (#21549)
* fix(route/kyodonews): update page selectors

* Apply suggestion from @TonyRL

* Update lib/routes/kyodonews/index.tsx
2026-03-30 03:57:29 +08:00
Tony 63633560d1 fix(route/typst): fix typst (#21547) 2026-03-29 23:38:38 +08:00
Tony 7ab0d1eff4 fix(ua): ensure header-generator and custom ua are effective with each other (#21546)
* fix(ua): ensure header-generator and custom ua are effective with each other

* fix(ua): review comment
2026-03-29 22:47:56 +08:00
pseudoyu cacb6e46c6 feat(route/joneslanglasalle): add hk support 2026-03-28 20:30:40 +08:00
pseudoyu 0ef804c931 fix(route/nhentai): fetch failed issue 2026-03-28 19:46:34 +08:00
pseudoyu 898dcc1d18 chore: add missing maintainers 2026-03-28 19:25:45 +08:00
pseudoyu 16d80122c6 fix(route/joneslanglasalle): migrate to new website 2026-03-28 19:25:30 +08:00
pseudoyu 574fb663c2 fix(route/qiche365): use set cookie to fix fetch failed issue 2026-03-28 18:48:32 +08:00
pseudoyu 8ed4034b09 fix(route/caus): migrate to wordpress api 2026-03-28 16:17:17 +08:00
pseudoyu 881a9d895f fix(route/qidian): anticrawl issue 2026-03-28 15:58:28 +08:00
pseudoyu f85a159881 fix(route/rfi): parsing result logics 2026-03-28 15:29:55 +08:00
pseudoyu 6fc6b9cccf fix(route/discuz): cannot read properties of undefined 2026-03-28 15:19:23 +08:00
pseudoyu 1e7f5a65f8 fix(route/digitalpolicyalert): result parsing logics 2026-03-28 15:10:11 +08:00
pseudoyu 6daac07f55 feat(route/the): migrate to river.to 2026-03-28 14:41:02 +08:00
Tony a48ad7b4ae chore: bump transitive deps
brace-expansion
2026-03-28 01:43:37 +08:00
pseudoyu e9e9546d75 fix(route/18comic): result filter issue 2026-03-27 20:52:43 +08:00
pseudoyu 614a466a6d fix(route/theinitium): migrate to ghost cms api 2026-03-27 20:39:04 +08:00
pseudoyu 8988948f0a fix(route/jinse): use jinse.com.cn domain 2026-03-27 19:26:44 +08:00
pseudoyu ba09c4da6c fix(route/jiemian): wrong articles from list 2026-03-27 19:13:43 +08:00
pseudoyu ab63633b95 fix(route/udn): use new api 2026-03-27 18:27:30 +08:00
pseudoyu a7ca7c558c fix(route/fanbox): add withPinned query param 2026-03-27 18:12:15 +08:00
Tony 5ae7432b26 fix(ofetch): use late-binding fetch in ofetch to ensure request-rewriter intercepts bundled builds (#21518) 2026-03-26 21:24:46 +08:00
TimoYoung 3086b7784f fix(route/2048): fix captcha handling and update cookie management (#21512)
* fix(route/2048): fix captcha handling and update cookie management

- Removed outdated cookie handling logic and replaced it with safeid extraction from the captcha HTML.
- Updated the response structure to use safeid instead of safe18Pass for cookie management.
- Enhanced enclosure extraction logic to support new sources。

* chore(route/2048): remove unused renderToString import

Made-with: Cursor

* fix(route/2048): prioritize magnet-text and reuse read_tpc node

Made-with: Cursor
2026-03-26 18:41:35 +08:00
studyinglover 4200769d1a feat(route/xupt): add XUPT JYC notifications route (#21451) 2026-03-26 18:02:55 +08:00
FeCCCandgithub-actions[bot] a0e75a2f10 fix(route/iwara): use puppeteer to fix subscriptions route (#21495)
* fix(route/iwara): use puppeteer to fix subscriptions route

* style: auto format

* style(route/iwara): remove unnecessary async keyword in fetchApi

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-26 03:06:13 +08:00
Zhenlong Huang 6dd8e83105 feat(route): Add route of dewu tech blogs (#21504) 2026-03-25 23:36:21 +08:00
Tony d0c386f9a6 chore: unpin jsdom (#21505)
* fix(server): update export syntax for app-bootstrap import

* chore(deps): upgrade jsdom to version 29.0.1 and related type definitions

* chore(vercel): remove unused functions configuration from vercel.json

* chore: add vercel cli

* fix: cleanup

* chore: unpin jsdom
2026-03-25 23:16:40 +08:00
github-actions[bot] 6e134d32d5 style: auto format 2026-03-25 10:35:56 +00:00
Tony 79a525cbd3 refactor: add GraphQL annotation to queries for auto formatting in oxfmt v0.42
0fe46fe333
2026-03-25 18:34:13 +08:00
github-actions[bot] 0fe46fe333 style: auto format 2026-03-25 09:24:21 +00:00
dependabot[bot]andTony df6b73d866 chore(deps-dev): bump msw from 2.4.3 to 2.12.14 (#21483)
* chore(deps-dev): bump msw from 2.4.3 to 2.12.14

Bumps [msw](https://github.com/mswjs/msw) from 2.4.3 to 2.12.14.
- [Release notes](https://github.com/mswjs/msw/releases)
- [Changelog](https://github.com/mswjs/msw/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mswjs/msw/compare/v2.4.3...v2.12.14)

---
updated-dependencies:
- dependency-name: msw
  dependency-version: 2.12.14
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: remove supertest

MSW's setupServer() works by patching Node's http module (via @mswjs/interceptors) to intercept outgoing requests. supertest's requests to http://127.0.0.1:1200 go through the same patched http module which causes server bad request

* chore(patch): add patch for @mswjs/interceptors@0.41.3

* fix(server): update server listen options to bypass unhandled requests

* chore: update patch for @mswjs/interceptors

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2026-03-25 02:31:42 +08:00
Tony 86088852ab test(header-generator): improve header validation (#21492) 2026-03-24 23:37:28 +08:00
LinxHex 697c3d6edb fix(route/landiannews): sanitize rendered titles (#21461)
* fix(route/landiannews): sanitize rendered titles

* refactor(route/landiannews): use sanitize-html for titles
2026-03-24 21:39:50 +08:00
Qiang Huang e3a0e74254 fix(route/likeshop): Likeshop API now supports title attribute (#21484) 2026-03-24 04:15:08 +08:00
Enoch Ma 122a5343cb feat(route/aeon): improve compatibility by enforcing the correct jpg enclosure type (#21470)
* Enforce enclosure type

* remove trailing space
2026-03-23 09:58:57 +08:00
Solitudinis e86c679a92 feat(route/cursor): support localized blog and changelog routes (#21390) 2026-03-20 23:15:55 +08:00
LinxHex f69c416291 feat(apple): add full-text Apple Newsroom route (#21384)
* feat(apple): add full-text Apple Newsroom route

Add /apple/newsroom for the official Apple Newsroom China feed.
Fetch article pages to provide full-text content with cached detail requests, and normalize article metadata and media URLs.
Remove gallery navigation, download buttons, video playback controls, empty wrapper nodes, and other non-content UI elements from articles.
Format image and video captions as distinct descriptions, and drop duplicate captions when their text matches the article body.

* fix(apple): sanitize dangerous media URLs in newsroom route

* fix(route): refine Apple Newsroom route metadata and request handling

* fix(route): simplify Apple Newsroom description cleanup
2026-03-20 22:18:15 +08:00
Yang ZhiandClaude Opus 4.6 d097ce525a feat(route): add perplexity blog (#21436)
* feat(route): add perplexity blog

Add route for Perplexity blog at /perplexity/blog, scraping
perplexity.ai/hub with Puppeteer. Extracts featured and regular
articles using data-framer-name selectors, deduplicates responsive
layout copies, and fetches full article text from detail pages.

* fix(route/perplexity): deduplicate article body text from Framer responsive copies

* fix(route/perplexity): return HTML content instead of plain text for article descriptions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 19:34:12 +08:00
Enoch Ma 9780b3ed02 fix(route/nautil): change url (#21452) 2026-03-20 03:50:04 +00:00
Enoch Ma d6f8ca5b33 feat(route/openalex): Filter out news articles from research articles (#21444) 2026-03-19 12:24:10 +08:00
Tony a3f06e485c feat: esm directory import (#21428) 2026-03-18 15:15:28 +08:00
DIYgod 4568a6a6ab feat: add promotion 2026-03-17 15:59:10 +08:00
Tony ed6b1924c9 fix(route): update language parameter regex in zhonglun route 2026-03-17 02:05:38 +08:00
Zdenek StursaandZdenek d2d4955b18 feat(route): add Inception Labs blog route (#21386)
* feat(routes): add Inception Labs blog route

Adds RSS feed for https://www.inceptionlabs.ai/blog/

The page is built with Framer and served as SSR HTML, so no Puppeteer
is required — a regular HTTP fetch with a browser User-Agent suffices.

Two distinct blog card layouts are handled:
- Standard card: date and category in [data-framer-name="Date"] elements
- Featured card: date inside a <mark> element, category in [data-framer-name="Category"]

Each item includes title, publication date, author, category, and the
full article body extracted from [data-framer-name="Content"].

Route: /inceptionlabs/blog
Example: /inceptionlabs/blog

* refactor(routes/inceptionlabs): address review feedback

- Fix categories: technology -> programming (valid Category type)
- Remove redundant radar source (inceptionlabs.ai redirects to www)
- Add maintainer GitHub ID
- Replace custom PostMeta interface with existing DataItem type
- Use [data-framer-name="Desktop"] selector to avoid SSR duplicates
- Refactor card collection from .each()/push to .map()/.filter()

---------

Co-authored-by: Zdenek <tvuj-email@example.com>
2026-03-16 23:20:37 +08:00
LinxHex c97a5a286f feat(weibo): apply description render params to comments (#21389) 2026-03-16 21:09:59 +08:00
Dacheinandxbankeradmin 85b5444d07 fix(route/apple/podcast): adapt to new serialized-server-data structure (#21387)
Apple Podcasts changed the `#serialized-server-data` element from a
direct array to an object wrapper `{ data: [...], userTokenHash }`.

This broke the route with:
  TypeError: Cannot read properties of undefined (reading 'data')

Changes:
- Handle both old (array) and new (object with `data` key) formats
  using `Array.isArray()` check for backward compatibility
- Add defensive optional chaining on the `channel` relationship
  access chain to prevent crashes when episodes lack channel data

Fixes the same underlying issue reported by yt-dlp (yt-dlp/yt-dlp#15926).

Made-with: Cursor

Co-authored-by: xbankeradmin <admin@xbanker.ai>
2026-03-16 19:58:24 +08:00