RSSHub/lib
TimoYoung a0dbb6edf0
fix(route/huxiu): restore article content fetching and unify metadata building (#21756)
* fix(route/huxiu): fix article detail fetching

- Introduced `extractArticleId` function to extract article IDs from links.
- Added `fetchArticleDetail` function to retrieve article details using the extracted ID.
- Updated `fetchItem` to first attempt fetching article details before falling back to the original link.
- Enhanced error handling for API requests and parsing failures.

* refactor(route/huxiu): enhance data fetching and processing

- Introduced `prefixHuxiu` function to standardize titles and descriptions.
- Updated `fetchData` to handle icon URLs more robustly.
- Simplified `fetchItem` logic for better error handling and data retrieval.
- Removed unused `parseInitialState` function to clean up the codebase.

* refactor(route/huxiu): enhance data fetching and metadata building

- Replaced `fetchData` with `fetchApiRouteData` for improved data retrieval across multiple routes.
- Introduced `buildFeedMetadata` and `buildHuxiuRouteTitlePrefix` functions to standardize metadata construction.
- Updated various route handlers to utilize the new data fetching and metadata building methods, improving consistency and maintainability.
- Removed the `prefixHuxiu` function as its functionality is now integrated into the new metadata building process.
2026-04-18 05:47:50 +08:00
..
api
assets
errors style: auto format 2026-04-14 15:15:05 +00:00
middleware style: auto format 2026-04-14 15:15:05 +00:00
routes fix(route/huxiu): restore article content fetching and unify metadata building (#21756) 2026-04-18 05:47:50 +08:00
routes-deprecated
shims chore(deps-dev): bump the oxc group across 1 directory with 4 updates (#21583) 2026-04-01 22:10:13 +08:00
utils style: auto format 2026-04-14 15:15:05 +00:00
views feat: add promotion 2026-03-17 15:59:10 +08:00
app-bootstrap.test.tsx feat(core): add honeybadger support (#21574) 2026-04-01 01:10:12 +08:00
app-bootstrap.tsx feat(core): add honeybadger support (#21574) 2026-04-01 01:10:12 +08:00
app.test.ts fix(ua): ensure header-generator and custom ua are effective with each other (#21546) 2026-03-29 22:47:56 +08:00
app.ts chore: unpin jsdom (#21505) 2026-03-25 23:16:40 +08:00
app.worker.tsx feat(core): add honeybadger support (#21574) 2026-04-01 01:10:12 +08:00
config.remote-error.test.ts
config.test.ts fix(ua): ensure header-generator and custom ua are effective with each other (#21546) 2026-03-29 22:47:56 +08:00
config.ts feat: disable IPv6 (#21719) 2026-04-13 23:45:08 +08:00
container.ts
entrypoints.test.ts
index.test.ts
index.ts feat: disable IPv6 (#21719) 2026-04-13 23:45:08 +08:00
pkg.test.ts
pkg.ts
registry.dynamic.test.ts feat: esm directory import (#21428) 2026-03-18 15:15:28 +08:00
registry.test.ts style: auto format 2026-04-14 15:15:05 +00:00
registry.ts feat: esm directory import (#21428) 2026-03-18 15:15:28 +08:00
route-paths.d.ts
router.js
routes.test.ts
server.ts
setup.test.ts style: auto format 2026-04-14 15:15:05 +00:00
types.ts docs: add sports category (#21704) 2026-04-13 04:21:20 +08:00
worker.ts
worker.worker.test.ts