added config-base file and config.ini generator

This commit is contained in:
2020-06-29 22:05:40 +01:00
parent 00ba11940a
commit 4606415a38
8 changed files with 701 additions and 31 deletions

View File

@@ -79,7 +79,10 @@ class Jellyfin:
"User-Agent": self.useragent,
"X-Emby-Authorization": self.auth,
}
self.info = requests.get(self.server + "/System/Info/Public").json()
try:
self.info = requests.get(self.server + "/System/Info/Public").json()
except:
pass
def getUsers(self, username: str = "all", userId: str = "all", public: bool = True):
"""