mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix(transfer): switch downloader monitor to foreground
This commit is contained in:
@@ -796,7 +796,7 @@ class TransferChain(ChainBase, metaclass=Singleton):
|
|||||||
state, errmsg = self.do_transfer(
|
state, errmsg = self.do_transfer(
|
||||||
fileitem=FileItem(
|
fileitem=FileItem(
|
||||||
storage="local",
|
storage="local",
|
||||||
path=str(file_path),
|
path=str(file_path).replace("\\", "/"),
|
||||||
type="dir" if not file_path.is_file() else "file",
|
type="dir" if not file_path.is_file() else "file",
|
||||||
name=file_path.name,
|
name=file_path.name,
|
||||||
size=file_path.stat().st_size,
|
size=file_path.stat().st_size,
|
||||||
@@ -804,7 +804,8 @@ class TransferChain(ChainBase, metaclass=Singleton):
|
|||||||
),
|
),
|
||||||
mediainfo=mediainfo,
|
mediainfo=mediainfo,
|
||||||
downloader=torrent.downloader,
|
downloader=torrent.downloader,
|
||||||
download_hash=torrent.hash
|
download_hash=torrent.hash,
|
||||||
|
background=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
# 设置下载任务状态
|
# 设置下载任务状态
|
||||||
|
|||||||
Reference in New Issue
Block a user