mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
fix #3687
This commit is contained in:
@@ -114,7 +114,7 @@ class StorageChain(ChainBase):
|
|||||||
"""
|
"""
|
||||||
return self.run_module("storage_usage", storage=storage)
|
return self.run_module("storage_usage", storage=storage)
|
||||||
|
|
||||||
def support_transtype(self, storage: str) -> Optional[str]:
|
def support_transtype(self, storage: str) -> Optional[dict]:
|
||||||
"""
|
"""
|
||||||
获取支持的整理方式
|
获取支持的整理方式
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ class FileManagerModule(_ModuleBase):
|
|||||||
def init_setting(self) -> Tuple[str, Union[str, bool]]:
|
def init_setting(self) -> Tuple[str, Union[str, bool]]:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def support_transtype(self, storage: str) -> Optional[Dict[str, str]]:
|
def support_transtype(self, storage: str) -> Optional[dict]:
|
||||||
"""
|
"""
|
||||||
支持的整理方式
|
支持的整理方式
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ class AliPan(StorageBase, metaclass=Singleton):
|
|||||||
|
|
||||||
# 支持的整理方式
|
# 支持的整理方式
|
||||||
transtype = {
|
transtype = {
|
||||||
|
"copy": "复制",
|
||||||
"move": "移动",
|
"move": "移动",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -252,7 +252,7 @@ class Monitor(metaclass=Singleton):
|
|||||||
self.transferchain.do_transfer(
|
self.transferchain.do_transfer(
|
||||||
fileitem=FileItem(
|
fileitem=FileItem(
|
||||||
storage=storage,
|
storage=storage,
|
||||||
path=str(event_path),
|
path=str(event_path).replace("\\", "/"),
|
||||||
type="file",
|
type="file",
|
||||||
name=event_path.name,
|
name=event_path.name,
|
||||||
basename=event_path.stem,
|
basename=event_path.stem,
|
||||||
|
|||||||
+1
-1
@@ -45,4 +45,4 @@ class StorageUsage(BaseModel):
|
|||||||
|
|
||||||
class StorageTransType(BaseModel):
|
class StorageTransType(BaseModel):
|
||||||
# 传输类型
|
# 传输类型
|
||||||
transtype: Optional[str] = None
|
transtype: Optional[dict] = Field(default_factory=dict)
|
||||||
|
|||||||
Reference in New Issue
Block a user