mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-07 07:41:28 +08:00
Merge pull request #2777 from Aqr-K/dev-transtype
This commit is contained in:
@@ -89,6 +89,16 @@ class FileManagerModule(_ModuleBase):
|
||||
def init_setting(self) -> Tuple[str, Union[str, bool]]:
|
||||
pass
|
||||
|
||||
def support_transtype(self, storage: str) -> Optional[Dict[str, str]]:
|
||||
"""
|
||||
支持的整理方式
|
||||
"""
|
||||
storage_oper = self.__get_storage_oper(storage)
|
||||
if not storage_oper:
|
||||
logger.error(f"不支持 {storage} 的整理方式获取")
|
||||
return None
|
||||
return storage_oper.support_transtype()
|
||||
|
||||
def recommend_name(self, meta: MetaBase, mediainfo: MediaInfo) -> Optional[str]:
|
||||
"""
|
||||
获取重命名后的名称
|
||||
|
||||
@@ -73,7 +73,7 @@ class U115Pan(StorageBase, metaclass=Singleton):
|
||||
return None
|
||||
return Credential.from_dict(cookie_dict.dict().get("config"))
|
||||
|
||||
def __save_credentail(self, credential: Credential):
|
||||
def __save_credential(self, credential: Credential):
|
||||
"""
|
||||
设置115认证参数
|
||||
"""
|
||||
@@ -117,7 +117,7 @@ class U115Pan(StorageBase, metaclass=Singleton):
|
||||
status = self.cloud.qrcode_poll(self._session)
|
||||
if status == QrcodeStatus.Done:
|
||||
# 确认完成,保存认证信息
|
||||
self.__save_credentail(self.cloud.export_credentail())
|
||||
self.__save_credential(self.cloud.export_credentail())
|
||||
result = {
|
||||
"status": 1,
|
||||
"tip": "登录成功!"
|
||||
|
||||
Reference in New Issue
Block a user