mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-16 07:44:44 +08:00
* 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.