fix(workflow): propagate RSS proxy to torrent downloads (#7501)

Fixes #7500
This commit is contained in:
jxxghp
2026-11-20 22:00:30 +08:00
committed by GitHub
parent db248bb2de
commit bf2236f024
2 changed files with 3 additions and 1 deletions

View File

@@ -108,6 +108,7 @@ class FetchRssAction(BaseAction):
continue
torrentinfo = TorrentInfo(
title=item.get("title"),
site_proxy=bool(action_params.proxy),
enclosure=item.get("enclosure"),
page_url=item.get("link"),
size=float(item["size"]) if isinstance(item.get("size"), (int, float)) else 0.0,

View File

@@ -72,13 +72,14 @@ def test_fetch_rss_reads_proxy_from_chain_snapshot(monkeypatch):
)
monkeypatch.setattr(fetch_rss_module.runtime_stop_state, "is_workflow_stopped", lambda _: False)
FetchRssAction("rss").execute(
context = FetchRssAction("rss").execute(
workflow_id=1,
params={"url": "https://example.com/rss.xml", "proxy": True},
context=ActionContext(),
)
assert captured["proxy"] == {"https": "http://snapshot-proxy:7890"}
assert context.torrents[0].torrent_info.site_proxy is True
def test_scan_file_filters_extensions_from_chain_snapshot(monkeypatch):