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