mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix bug
This commit is contained in:
@@ -32,13 +32,9 @@ class U115Pan(StorageBase, metaclass=Singleton):
|
|||||||
"""
|
"""
|
||||||
初始化Cloud
|
初始化Cloud
|
||||||
"""
|
"""
|
||||||
credential = self.__credential
|
|
||||||
if not credential:
|
|
||||||
logger.warn("115未登录,请先登录!")
|
|
||||||
return False
|
|
||||||
try:
|
try:
|
||||||
if not self.client or not self.client.cookies or force:
|
if not self.client or not self.client.cookies or force:
|
||||||
self.client = P115Client(credential)
|
self.client = P115Client(self.__credential)
|
||||||
self.fs = P115FileSystem(self.client)
|
self.fs = P115FileSystem(self.client)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
logger.error(f"115连接失败,请重新扫码登录:{str(err)}")
|
logger.error(f"115连接失败,请重新扫码登录:{str(err)}")
|
||||||
|
|||||||
Reference in New Issue
Block a user