Commit Graph
6265 Commits
Author SHA1 Message Date
Tony 768e9915c1 fix(route): remove got.all usage in baai (#15363) 2024-04-25 03:50:21 +08:00
Tony 19dd9609f0 fix(route): usenix (#15362) 2024-04-25 02:40:32 +08:00
Tony aba18ac44a fix(route): douyin live (#15361) 2024-04-25 00:53:25 +08:00
GoDotDotDot 4787b2c726 fix(route): tweet detail not work (#15355) 2024-04-24 19:17:18 +08:00
github-actions[bot] a508a1c706 style: auto format 2024-04-24 10:46:22 +00:00
Bangwu fb0b142b5a feat(route): add jwc notice (#15357)
* add jwc

* fix Move function definitions to the highest possible scope.
Warning

* Fix code non-standard format

* Fix code non-standard format
2024-04-24 18:44:37 +08:00
NyaaaDoge df51c93677 feat(route): add steam community hub (#15346)
* feat(route): add steam community hub

* Update lib/routes/steamcommunity/appcommunityfeed.ts

* Update lib/routes/steamcommunity/appcommunityfeed.ts

* Move to route folder Steam

---------
2024-04-24 17:33:56 +08:00
Tony 41c6861d88 fix(got): posting form as x-www-form-urlencoded (#15348) 2024-04-24 00:10:53 +08:00
Ethan Shen 26dcea0599 fix(route): 中国人民银行 (#15347) 2024-04-23 22:11:39 +08:00
MachX 6faaecd131 feat(route): add colamanga (#15343) 2024-04-23 21:51:20 +08:00
Rongrong 690e91c59d fix(route/{telegram/channel,wechat/tgchannel}): broken links (#15332)
route/telegram/channel:
Since 2024/4/20, t.me/s/ mistakenly have every '&' in **hyperlinks**
replaced by '&'. The characteristic of a hyperlink is [onclick]
(pop-up confirmation), which is not present in ordinary links. This is a
workaround to fix the issue until Telegram fixes it.

route/wechat/tgchannel:
Since 2024/4/20, t.me/s/ mistakenly have every '&' in **hyperlinks**
replaced by '&'. wechat-mp will take care of this, so no need to fix
it here. However, once the bug is eventually fixed, all guid will be
changed again. Considering that this is almost certain to happen, let's
break guid consistency now by using normalized URL from wechat-mp as
guid to avoid similar issues in the future.

Signed-off-by: Rongrong <i@rong.moe>
2024-04-23 21:22:19 +08:00
teapot1deandgithub-actions[bot] d2e8cd65c5 fix: date parsing bug in jwc.ts (#15326)
* 添加了新的RSSHub路由,支持Radar ,以及修改了对应的文档

新增了针对南昌大学教务处通知的RSSHub路由,支持Radar。
同时修改了RSShub文档

* Removed redundant settings and fixed the year.

删去了多余的代码,更正了正确的年份

* 修改radar.js来修复问题

原来的radar无法正确识别网站,原来是url错误了,现在已经更改

* Update jwc.js

* Refactor jwc.ts and remove unused files

* Update dependencies

* Refactor jwc.ts and remove unused files

* Refactor jwc.ts and update newsDate calculation

* Optimized date retrieval code: consolidated year and month retrieval into a single line

* style: auto format

* Refactor jwc.ts: Consolidate date retrieval code

* Revert "Refactor jwc.ts: Consolidate date retrieval code"

This reverts commit 353f70745cff2eff950d115a518b9f5750a4b1c7.

* Revert "Optimized date retrieval code: consolidated year and month retrieval into a single line"

This reverts commit e38bc31ab412b79842e74b8c86a1fe39277e2ca4.

* Refactor jwc.ts: Consolidate date retrieval code and optimize newsDate calculation

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-23 18:15:56 +08:00
Ethan Shen fb97e6d554 feat(route): add 北京师范大学经济与工商管理学院MBA (#15330) 2024-04-22 22:36:25 +08:00
Andvari f75997f935 fix(route/tencent): Adapt to video pages. (#15328) 2024-04-22 20:54:00 +08:00
storytellerF 53c514f6a6 fix(route): namespace issue (#15327) 2024-04-22 17:43:03 +08:00
Henry Wang 3f41bdeb9d fix: missing pubDate causing Al Jazeera failed to build (#15324) 2024-04-21 23:30:16 +01:00
Jaya dc4c5c8299 feat: fix gxmzu rss support && fix njxzc rss support && fix jou rss support (#15253)
* feat: Enhance link resolution and content selection

- Update utils/index.ts to check for non-empty redirect URLs before assignment.
- Modify yjs.ts and ai.ts to select content using a higher-level ID '#vsb_content' for more comprehensive data extraction.
- Ensure all relative URLs within content are transformed into absolute URLs to improve link accessibility and reliability in RSS feeds.

* feat(njxzc/utils/index.ts): Enhance link resolution and handle specific access restrictions

- Replace direct string manipulations with conditional checks for 'response.redirectUrls'.
- Implement checks for '.wp_error_msg' to manage content access based on IP restrictions.
- Remove 'replaceAll' function usage to improve handling of relative URLs in 'contentSelector.content'.
- Ensure robust handling of content that can't be directly previewed due to restrictions or missing permissions.

* feat(jou/utils/index): Enhance URL handling and integrate PDF viewing logic

- Replace usage of 'replaceAll' with conditional checks for 'response.redirectUrls' to ensure robust URL handling.
- Add logic to detect embedded PDF scripts in web content, setting descriptions appropriately when PDF content is detected.
- This update aims to improve the system's ability to handle different types of content securely and effectively, particularly enhancing how PDF files are managed within the application.

* feat: Replace got with ofetch in route handlers

- Updated /lib/routes/gxmzu, /lib/routes/jou, and /lib/routes/njxzc to use ofetch instead of got for HTTP requests.
- Adjusted redirection handling logic to align with ofetch's API and behavior.
- Ensured all route handlers now properly handle redirects by checking response status codes instead of relying on redirectUrls array from got.

This change enhances the reliability and maintainability of HTTP request handling across different university library routes by utilizing ofetch, which is more consistent with our current architecture and requirements.
2024-04-22 05:10:24 +08:00
Rongrong f3cf86cd72 fix(core/utils/wechat-mp): empty description when request blocked by WAF (#15294)
* fix(core/utils/wechat-mp): empty description when request blocked by WAF

Silently falling back to the fallback method would generate empty
description. Fixed by throwing an error when failed to extract
item_show_type from the page.

Some misc warnings are also added to make bug reporting easier.

Signed-off-by: Rongrong <i@rong.moe>

* fix(core/utils/wechat-mp): err msg for unknown page

Signed-off-by: Rongrong <i@rong.moe>

* test(core/utils/wechat-mp): fix coverage

Signed-off-by: Rongrong <i@rong.moe>

* fix(core/utils/wechat-mp): ESLint no-await-in-loop

Signed-off-by: Rongrong <i@rong.moe>

* fix(core/utils/wechat-mp): normalizeUrl: &amp; -> &

Signed-off-by: Rongrong <i@rong.moe>

* feat(core/utils/wechat-mp): do not prompt raising an issue when blocked
by WAF

Signed-off-by: Rongrong <i@rong.moe>

* feat(core/utils/wechat-mp): recognize deleted page

Signed-off-by: Rongrong <i@rong.moe>

* feat(core/utils/wechat-mp): log when error

Prevent errors from being completely suppressed if the caller catches
them.

Signed-off-by: Rongrong <i@rong.moe>

---------

Signed-off-by: Rongrong <i@rong.moe>
2024-04-22 02:19:33 +08:00
karasuandTony bd099c13f7 feat(route): 知识星球 (#15320)
* feat(route): 知识星球

* feat: add scope parameter

* remove redundant variables

* fix

* Update lib/routes/zsxq/utils.ts

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

* fix

---------
2024-04-22 01:05:59 +08:00
ueiu 057ea01f47 feat(route): 增加黑龙江八一农垦大学新闻网 RSS (#14824) (#15321) 2024-04-22 00:51:43 +08:00
Felix Hsu 4f678bd797 fix(route): fix the gov.cn stats using the ofetch.raw (#15317) 2024-04-21 22:32:42 +08:00
LucunJi 5991ecbbbb fix(route): broken lofter route (#15310)
* fix(route): broken lofter route

* fix(routes): add my name to maintainers
2024-04-21 02:28:50 +08:00
Ethan Shen 24bd98e607 feat(route): add 中国汽车流通协会汽车市场研究分会 (#15314) 2024-04-21 02:27:58 +08:00
Mg Pig 8eccccc59c fix(core): request-rewriter proxy ignore loopback address and puppeteer ws endpoint (#15293) 2024-04-19 23:58:43 +08:00
Tony b3eb3f3a0b feat(route): add back twitter 2fa (#15292)
ref: https://github.com/DIYgod/RSSHub/commit/95ace0991774042f32c21a26a8fc5f85eb124646
2024-04-19 22:29:34 +08:00
碳黑橙子 1a3720ab4d feat(route): Add 上海业余无线电协会 (#15290)
* feat(route): Add 上海业余无线电协会

* fix(route): fix type error
2024-04-19 20:54:14 +08:00
Ethan Shen 195c057fea feat(route): add 德恒律师事务所德恒探索 (#15287)
* feat(route): add 德恒律师事务所德恒探索

* fix logo

* fix node path

* update index.ts

* fix typo
2024-04-19 02:52:24 +08:00
Andvari 166e1fd753 fix(route/reuters): Using by topic fetching method for tags, (#15285) 2024-04-18 23:03:15 +08:00
Tony 9ef453e501 style: run prettier before eslint 2024-04-18 22:44:04 +08:00
github-actions[bot] a11404ee02 style: auto format 2024-04-18 14:07:09 +00:00
Rongrong a99b35f257 feat(core/utils/wechat-mp): major rewrite (#15276)
* feat(core/utils/wechat-mp): major rewrite

* Support more `item_show_type`: `APP_MSG_PAGE`, `VIDEO_SHARE_PAGE`,
`AUDIO_SHARE_PAGE`, and `IMG_SHARE_PAGE`. Previously only the first one
could be parsed properly. There are still some other known types waiting
for live examples for further adaptation. If this is the case, a
fallback method will try to generate entries using mostly OpenGraph
metadata. Meanwhile, the administrator of self-hosted instances will see
warnings in the log, asking them to report the URL as a new live
example. Still, `VIDEO_SHARE_PAGE` explicitly uses the fallback method
without any warning, as there is no possible approach to generate a
video/iframe URL from page metadata.

* Show audio and videos in `APP_MSG_PAGE`. However, not all videos
can be shown due to the same reason as `VIDEO_SHARE_PAGE`.

* Show the location where the article is sent.

* Some bugs, mostly due to outdated cheerio selector, are fixed.

* Add a new sub-route `wechat-mp` to `/test` to make things easier.

* All changes are well-tested.

Signed-off-by: Rongrong <i@rong.moe>

* style(core/utils/wechat-mp): fix ESLint & CodeQL errors

Signed-off-by: Rongrong <i@rong.moe>

* style(core/utils/wechat-mp): fix a DeepScan issue

Signed-off-by: Rongrong <i@rong.moe>

* style(core/utils/wechat-mp): fix ESLint error

Another try w/ pre-commit hook disabled.

Signed-off-by: Rongrong <i@rong.moe>

---------

Signed-off-by: Rongrong <i@rong.moe>
2024-04-18 22:05:32 +08:00
karasu 28504a1974 fix(route): qingting (#15280) 2024-04-18 09:58:15 +00:00
Raven-tu d21c4dd4ef fix: bilibili cache issue and close puppeteer after getting cookie (#15282) 2024-04-18 09:39:19 +00:00
Henry Wangandpull[bot] 5c3711cbcc feat: support .rss3 output type (#15258)
Co-authored-by: pull[bot] <39814207+pull[bot]@users.noreply.github.com>
2024-04-18 02:10:33 +08:00
葉家郡andJia-Jun Yeh 1bb97aea85 feat(route): 0x80.pl (#15266)
* add a new routes of 0x80.pl

* Sort import list in index.ts

* Update index.ts

---------

Co-authored-by: Jia-Jun Yeh <jun.yeh@stranity.com>
2024-04-17 16:20:44 +08:00
Acringand刘圳 d9051070f8 feat(route): add apple podcast route (#15255)
* feat: add apple podcast route

Signed-off-by: 刘圳 <liu.zhen@xsky.com>

* Update lib/routes/apple/podcast.ts

---------

Signed-off-by: 刘圳 <liu.zhen@xsky.com>
Co-authored-by: 刘圳 <liu.zhen@xsky.com>
2024-04-17 14:57:01 +08:00
karasu 31f578d694 fix(route): qingting (#15251)
* fix(route): qingting

* fix: set default value for `qingtingId`

* fix: typo
2024-04-17 14:34:41 +08:00
Tony 0456ca9541 fix(core): remove unicode control characters in item description (#15263) 2024-04-17 02:51:05 +08:00
Andvari 5a566e6d72 fix(route/bing): Replace got (#15237)
* fix(route/bing): Replace `got`

* .

* Update daily-wallpaper.ts
2024-04-17 02:39:50 +08:00
Ethan Shen f71451dfc9 feat(route): add Access Briefing (#15259) 2024-04-17 02:27:15 +08:00
Henry Wang 920d1a9379 fix: BBC URL pathname check (#15260) 2024-04-16 17:12:16 +01:00
Maooyer 22551e963f feat(route/mihoyo): enhance miyoushe official post (#15257)
* feat(route/mihoyo): enhance miyoushe offical post

1. get full text post rather than abstracts.
2. add post hashtags as rss.item.category.
3. Set appropriate link.

* fix(route/mihoyo): fix __dirname is not defined error
2024-04-16 23:09:42 +08:00
karasu 3511bb3633 fix(route): zhihu/activities (#15252) 2024-04-16 17:06:10 +08:00
Tony 258e895f00 fix(route): freexcomic (#15240) 2024-04-16 05:35:33 +08:00
Tony 634b910c0a fix(route): threads (#15239) 2024-04-16 02:21:12 +08:00
GideonSenkuandpull[bot] afc5e3396a feat(route): 新增江苏文化和旅游局审批公告 (#14978)
* feat(route): add jiangsu wlt

* fix: link url

* fix: rule

* fix: node ptah

---------

Co-authored-by: pull[bot] <39814207+pull[bot]@users.noreply.github.com>
2024-04-15 23:01:48 +08:00
Minaduki Shigure b09cf324f9 fix(route): 南京大学 本科生院教务 (#15238) 2024-04-15 17:51:33 +08:00
欠陥電気 dc093eb2e3 fix(route): update mixcloud (#15236) 2024-04-15 17:13:04 +08:00
Maooyer 1c4521897f fix(router): hoyolab news (#15234) 2024-04-15 16:31:04 +08:00
DIYgod 6ce99d9f2e fix(twitter): request headers 2024-04-15 10:28:28 +08:00