fix downloaders

This commit is contained in:
jxxghp
2024-07-02 11:00:55 +08:00
parent dfc5872087
commit c8fe6e4284
19 changed files with 311 additions and 140 deletions

View File

@@ -19,7 +19,10 @@ class Plex:
_plex = None
_session = None
def __init__(self, host: str = None, play_host: str = None, token: str = None):
def __init__(self, host: str, token: str, play_host: str = None, **kwargs):
if not host or not token:
logger.error("Plex服务器配置不完整")
return
self._host = host
if self._host:
self._host = RequestUtils.standardize_base_url(self._host)