mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-25 02:00:13 +08:00
feat(workflow): implement action contract management for inputs and outputs
This commit is contained in:
@@ -30,6 +30,11 @@ class FetchTorrentsAction(BaseAction):
|
||||
搜索站点资源
|
||||
"""
|
||||
|
||||
contract = {
|
||||
"inputs": [{"name": "medias", "label": "媒体", "kind": "list"}],
|
||||
"outputs": [{"name": "torrents", "label": "资源", "kind": "list"}],
|
||||
}
|
||||
|
||||
def __init__(self, action_id: str):
|
||||
super().__init__(action_id)
|
||||
self._torrents = []
|
||||
|
||||
Reference in New Issue
Block a user