Repository navigation
Support customized script to fetch feeds - #101
Merged
Merged
Conversation
Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for customized script to fetch feeds
Support customized script to fetch feeds
Nov 27, 2025
Member
|
@copilot 优化:
|
…g features Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
Contributor
Author
Implemented all 5 requested improvements in commit
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
- 添加自定义脚本执行功能,支持Python、Shell、PowerShell等脚本 - 改进前端UI:添加modal关闭处理、侧边栏搜索、文章过滤器优化 - 修复国际化问题:统一locale格式为en-US/zh-CN - 优化feed获取:当标题缺失时从内容自动生成标题 - 改进设置系统:添加默认视图模式设置 - 增强安全性:改进脚本路径验证防止目录遍历攻击 - 修复刷新逻辑:支持并发feed刷新和滚动位置保持
WCY-dt
marked this pull request as ready for review
November 27, 2025 10:47
WCY-dt
approved these changes
Nov 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds support for custom scripts as an alternative to RSS URL-based feed fetching. Scripts are stored in
{data_dir}/scripts/and executed during feed refresh, outputting valid RSS/Atom XML. Also includes additional UX improvements for feed management.Type of Change
Related Issues
Fixes #100
Changes Made
Backend:
script_pathfield to Feed model with DB migrationScriptExecutorsupporting Python, Shell, PowerShell, Node.js, Ruby scriptsFetchFeedto execute script whenscript_pathis set/api/scripts/{dir,open,list}endpoints for script management/api/feeds/refreshendpoint for single feed refreshFrontend:
Documentation & Examples:
docs/CUSTOM_SCRIPTS.mdwith comprehensive script authoring guidescripts/examples/(Python, Shell, Node.js)Screenshots
Before
N/A - new feature
After
N/A - desktop app requires full build
Testing
Test Configuration
Test Steps
{data_dir}/scripts/that outputs RSS XMLChecklist
Additional Notes
Script example (Python):
See
docs/CUSTOM_SCRIPTS.mdfor complete documentation on writing custom scripts.Breaking Changes
None - existing URL-based feeds continue to work unchanged.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.