mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-12 16:02:35 +08:00
fix module test
This commit is contained in:
@@ -31,12 +31,12 @@ class PlexModule(_ModuleBase, _MediaServerBase):
|
||||
def stop(self):
|
||||
pass
|
||||
|
||||
def test(self) -> Tuple[bool, str]:
|
||||
def test(self) -> Optional[Tuple[bool, str]]:
|
||||
"""
|
||||
测试模块连接性
|
||||
"""
|
||||
if not self._servers:
|
||||
return False, "未配置Plex服务器"
|
||||
return None
|
||||
for name, server in self._servers.items():
|
||||
if server.is_inactive():
|
||||
server.reconnect()
|
||||
|
||||
Reference in New Issue
Block a user