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
+4 -1
View File
@@ -15,7 +15,10 @@ from app.utils.http import RequestUtils
class Emby:
def __init__(self, host: str = None, play_host: str = None, apikey: str = None):
def __init__(self, host: str, apikey: str, play_host: str = None, **kwargs):
if not host or not apikey:
logger.error("Emby服务器配置不完整!")
return
self._host = host
if self._host:
self._host = RequestUtils.standardize_base_url(self._host)