Commit Graph
8215 Commits
Author SHA1 Message Date
Tony fb7e42cef3 refactor: de-alias 2025-09-30 00:40:03 +08:00
Stephen Zhou add932bf38 feat: more nsfw flag (#20184)
* feat: add more nsfw flag

* update
2025-09-29 17:41:45 +08:00
Ethan Shen f0abc30258 fix(route): correct broken links to investor.org.cn (#20181) 2025-09-29 05:18:29 +08:00
Stephen Zhou 41b403e92e fix(route/youtube): get subtitle for google api 2025-09-28 10:59:19 +08:00
Tony f8da14e119 docs: fix markdown custom containers syntax 2025-09-28 03:34:52 +08:00
Tony 519acae24c fix(route/zhihu): fix daily section (#20179) 2025-09-28 02:26:17 +08:00
Ethan Shen e3c86d8a62 feat(route): add 经济观察网快讯 (#20168)
* feat(route): add 经济观察网快讯

* fix typo
2025-09-27 01:39:33 +08:00
Xiaoyun Jing fb37151003 feat(route): 添加浙江大学控制科学与工程学院通知的路由 (#20141)
* Adding a route of zju/cse

* Change route path to include '/zju/' prefix

* Fix the route of zju/cse

* Fix the route of zju/cse

* Response to the reviewer

* Update comment for content extraction in index.ts

Removed comment about removing images from content extraction.
2025-09-26 22:55:50 +08:00
github-actions[bot] 59fa12e89b style: auto format 2025-09-26 10:24:04 +00:00
Tsung-Han Yu 58beb06ba7 feat: add cursor blog (#20174)
* feat: add cursor blog

* Update lib/routes/cursor/blog.ts

---------
2025-09-26 18:22:21 +08:00
Yuan Xu 3172c56c4f fix: Update zhihu daily API call (#20143)
* fix: update zhihu daily API call

Updated story URL to use the API endpoint and adjusted data extraction
accordingly.

* fix: remove useless cache

* fix: use data from json instead

---------
2025-09-26 03:35:00 +08:00
Tony 6bf9470b57 fix(route/letterboxd): remove unwanted characters 2025-09-26 03:08:48 +08:00
Tony c990ef7ba5 feat(route/naturalism): add what's new (#20144)
* feat(route/naturalism): add what's new

* Update new.ts
2025-09-25 21:24:59 +08:00
DIYgod 12a519ff83 fix: twitter data 2025-09-25 11:38:11 +08:00
github-actions[bot] abddff812f style: auto format 2025-09-25 01:18:23 +00:00
Tsung-Han Yu 6de8189f67 feat(route): add baselang (#20140)
* feat: add baselang route

* fix: remove try catch block

* fix: code review
2025-09-25 09:16:40 +08:00
Kjasn 85f69e7dc4 feat(route/baozimh): extract more chapters (#20135) 2025-09-24 21:10:59 +08:00
Ethan Shen 7bbf9710ed feat(route): add dbaplus资讯 (#20134)
* feat(route): add dbaplus资讯

* fix typo
2025-09-24 07:57:51 +08:00
Tsuyumi25 51260eb16f fix(route/pixiv): implement xRestrict-based routing for novel series (#20129) 2025-09-23 19:44:51 +08:00
Cason Kervis bc9957d03c fix(route/sspai/index): adapt to sspai morning news new design (#20127)
* fix: adapt to sspai morning news new design

* fix: fix variable name
2025-09-22 23:10:06 +08:00
Tony 8ae3cf6f38 feat(route/telegram): add caching for input entity retrieval (#20128) 2025-09-22 22:56:01 +08:00
github-actions[bot] 6edbe3896e style: auto format 2025-09-22 13:14:47 +00:00
AndvariandTony 103850fa76 fix(route/yahoo): update ldJson extraction (#20110)
* fix(route/yahoo): update ldJson extraction

* Update lib/routes/yahoo/news/utils.ts

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

---------
2025-09-22 21:12:54 +08:00
Ethanandyifan.wang1004 84c92e4e60 fix(route): remove rich block (#20116)
Co-authored-by: yifan.wang1004 <yifan.wang1004@bytedance.com>
2025-09-22 17:29:30 +08:00
DIYgod 5f67726699 fix(bilibili/ranking): update handler to await item mapping for correct item resolution 2025-09-22 17:08:13 +08:00
Tony 3904f55ed9 feat(route/hit)!: remove jwc (#20115)
it was originally added in #634
2025-09-22 04:59:13 +08:00
Tony 89cc27ec2e feat(route): add Tsinghua University news route (#20114) 2025-09-22 03:32:25 +08:00
Ethan Shen 1eb53df2da fix(docs): remove extra newline in filters table for jbma.net (#20113) 2025-09-22 00:51:02 +08:00
Tsuyumi25 79c0b68005 feat(route): add CrushNinja (#20109)
* feat(route): add CrushNinja

* fix: use description as title in item data

* fix: rename crushninja namespace to crush
2025-09-21 23:42:03 +08:00
Tony 8622f69958 chore(eslint): ensure proper error handling 2025-09-21 23:18:48 +08:00
Tsuyumi25 69079fcfb2 fix(skeb): resolve Redis cache async issue and refactor request flow (#20111)
- Fix Redis cache async handling by adding await to cache.get() calls
- Refactor request_key management into separate ensureRequestKey function
- Simplify main data fetching flow by removing complex retry logic
- Add proper error type guards and logging for better debugging
- Improve code readability and maintainability

Fixes issue where Skeb works route failed with Redis cache due to
cache.get() returning Promise object instead of string value, causing
invalid request_key in API calls.
2025-09-21 22:53:48 +08:00
AlexandClaude 2ca1b3afa5 feat(route): add Wikipedia current events (#20100)
* feat(route): add Wikipedia current events

Add RSS feed for Wikipedia Portal:Current events providing the past 7 days of current events. Parses MediaWiki templates and converts wiki markup to HTML.

- Hierarchical bullet point structures with nested <ul>/<li> tags
- Proper paragraph breaks between sections
- Correct nesting depth for multi-level lists
- Clean separation of content sections

🤖 Generated with [Claude Code](https://claude.ai/code)

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

* refactor(route/wikipedia): break down complex wikiToHtml function

- Split 123-line wikiToHtml function into 6 smaller, focused methods
- Each function now has a single responsibility (links, formatting, lists, etc.)
- Improved code readability and maintainability
- End-to-end tested: route produces identical RSS output with proper HTML formatting

🤖 Generated with [Claude Code](https://claude.ai/code)

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

* fix(route/wikipedia): use config.trueUA instead of hardcoded User-Agent

Replace hardcoded User-Agent string with config.trueUA to follow
project conventions for HTTP requests.

🤖 Generated with [Claude Code](https://claude.ai/code)

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

* fix(route/wikipedia): use config.cache.contentExpire for cache duration

Replace hardcoded 6-hour cache duration with configurable contentExpire
setting to follow project caching conventions.

🤖 Generated with [Claude Code](https://claude.ai/code)

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

* feat(route/wikipedia): implement efficient current events RSS with single API request

- Switch from web scraping to MediaWiki API for better reliability
- Implement single batch API request with continuation support for multiple pages
- Add current-day inclusion parameter with time-based logic (auto/always/never/hour)
- Add proper error handling and ESLint compliance

🤖 Generated with [Claude Code](https://claude.ai/code)

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

* refactor(route/wikipedia): consolidate list processing and add API documentation

- Move wrapListItems and processNestedLists calls inside (renamed) processListsAndLines to eliminate non-obvious coupling
- Remove newlines from processNestedLists output for more compact HTML
- Add documentation about Wikipedia API endpoints and query options

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-21 22:12:30 +08:00
Ethan Shen eedb725e46 fix(route): 中国投资者网 (#20106) 2025-09-20 08:46:13 +08:00
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
Blank0120 bc3c354285 refactor(route/bbc): using Chinese Title in Learning English route (#20101) 2025-09-19 20:53:46 +08:00
Stephen Zhou 84a2d7a60a fix(route/hupu): parse time 2025-09-19 10:16:50 +08:00
la3rence b640f5893c feat(route): add huijin news (中央汇金) (#20093)
* feat(route): add huijin news

* feat(route): rename to huijin-inv
2025-09-19 09:59:13 +08:00
Tony 7738a78b97 fix(route/podcast): add fallback channel data (#20099) 2025-09-19 05:15:04 +08:00
github-actions[bot] fd4d1c4030 style: auto format 2025-09-18 16:16:42 +00:00
Tsung-Han Yu 6eb366e5e8 feat(route): add 科技大觀園 scitechvista route (#20089)
* feat: add scitechvista route

* fix: lint errors

* fix: remove referrerpolicy since middleware adds it

* Update lib/routes/scitechvista/index.ts

---------
2025-09-19 00:14:52 +08:00
Ethan Shen f9c381ae61 fix(route): Surfshark Blog (#20087)
* fix(route): Surfshark Blog

* fix typo
2025-09-18 08:57:25 +08:00
Tony 32d229ed0e fix(route/producthunt): fix events list (#20088) 2025-09-18 05:33:06 +08:00
Tony 2566b86617 fix(route/telegram): fix channel media path overlap (#20085) 2025-09-17 21:23:48 +08:00
Kjasn 9f8e967c8a feat(route): add qwen blog (#20064)
* feat(route): add qwen blog

* handle date and remove redundant category
2025-09-17 18:37:28 +08:00
Tsung-Han Yu 41f611de8e feat(route): add google jules (#20074) 2025-09-17 10:06:13 +08:00
Tsung-Han Yu f0c3a2d452 fix(route/natgeo): filter out irrelevant items (#20076) 2025-09-17 05:20:05 +08:00
Keo ae1f40e0ac fix(itch): incorrect devlog authors (#20073)
* fix(itch): devlog authors

* selector
2025-09-16 23:40:02 +08:00
Stephen Zhou 2f92886dae feat(route/hupu): video content support 2025-09-16 23:23:58 +08:00
Stephen Zhou 47da5b3c35 fix(route/hupu): get gif image first 2025-09-16 22:58:47 +08:00
Stephen Zhou 06534ca29e fix(route/hupu): invalid image url 2025-09-16 22:44:05 +08:00