mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-12-02 00:46:27 +08:00
fix(workflow): propagate RSS proxy to torrent downloads (#7501)
Fixes #7500
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user