mirror of
https://github.com/jxxghp/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix bug
This commit is contained in:
@@ -46,7 +46,7 @@ class BarkMsg(_PluginBase):
|
||||
self._params = config.get("params")
|
||||
|
||||
def get_state(self) -> bool:
|
||||
return self._enabled and self._server and self._apikey
|
||||
return self._enabled and (True if self._server and self._apikey else False)
|
||||
|
||||
@staticmethod
|
||||
def get_command() -> List[Dict[str, Any]]:
|
||||
|
||||
@@ -42,7 +42,7 @@ class IyuuMsg(_PluginBase):
|
||||
self._msgtypes = config.get("msgtypes") or []
|
||||
|
||||
def get_state(self) -> bool:
|
||||
return self._enabled and self._token
|
||||
return self._enabled and (True if self._token else False)
|
||||
|
||||
@staticmethod
|
||||
def get_command() -> List[Dict[str, Any]]:
|
||||
|
||||
@@ -44,7 +44,7 @@ class PushDeerMsg(_PluginBase):
|
||||
self._apikey = config.get("apikey")
|
||||
|
||||
def get_state(self) -> bool:
|
||||
return self._enabled and self._server and self._apikey
|
||||
return self._enabled and (True if self._server and self._apikey else False)
|
||||
|
||||
@staticmethod
|
||||
def get_command() -> List[Dict[str, Any]]:
|
||||
|
||||
Reference in New Issue
Block a user