mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 12:08:09 +08:00
add downloads path
This commit is contained in:
@@ -41,6 +41,7 @@ class FetchDownloadsAction(BaseAction):
|
||||
download.completed = True
|
||||
continue
|
||||
for t in torrents:
|
||||
download.path = t.path
|
||||
if t.progress >= 100:
|
||||
download.completed = True
|
||||
|
||||
|
||||
@@ -9,4 +9,5 @@ class DownloadTask(BaseModel):
|
||||
"""
|
||||
download_id: Optional[str] = Field(None, description="任务ID")
|
||||
downloader: Optional[str] = Field(None, description="下载器")
|
||||
path: Optional[str] = Field(None, description="下载路径")
|
||||
completed: Optional[bool] = Field(False, description="是否完成")
|
||||
|
||||
Reference in New Issue
Block a user