Files
RSSHub/lib
gz4zzxc 380874aca8 feat(route): add gdufs/xwxy News Center feed with categories and Radar (#20092)
* fix: improve date parsing error handling in gdufs xwxy-news route

- Add null check before calling parseDate to prevent errors when dateText is empty
- Return undefined instead of calling toUTCString() on potentially invalid date

* feat(gdufs/xwxy): add News Center feed with categories and Radar

- Add route /gdufs/xwxy/:category? (news|notices|announcements|media)

- Parse lists with fallbacks; absolute URLs for img/a; extract content across multiple templates; derive authors from meta; recover pubDate from meta if missing

- Respect ?limit (default 10) before detail fetch; use cache.tryGet for item pages

- Relax link filtering to include internal assets and resolved relative URLs; handle external links without fetching

- Normalize route url to xwxy.gdufs.edu.cn; simplify Radar sources

* fix: add data: and vbscript: protocol checks for security

* refactor(gdufs/xwxy): simplify selector logic using precise li[id^='line_u14_'] a

- Replace complex multi-level fallback selector logic (13 lines) with single precise selector
- Remove unnecessary filtering logic for href validation and domain checking
- Improve performance by eliminating multiple DOM queries
- Maintain same functionality while reducing code from 35 lines to 1 line
- Verified working on all category pages: news, notices, media focus

* fix: use h5 instead of p for title extraction

* refactor: remove excessive try-catch wrapper

* fix: remove descriptive text for external links

* refactor: simplify content selector to use .v_news_content only

* fix: use comma separator for multiple authors

* refactor(gdufs/xwxy): dedupe date regex into handler-scope constant; remove unnecessary escape
2025-09-19 23:31:00 +08:00
..
2025-06-09 21:55:24 +08:00
…