diff --git a/app/config.json b/app/config.json index a2822f8..b8f325e 100644 --- a/app/config.json +++ b/app/config.json @@ -1,7 +1,6 @@ { - "theme": "light", + "theme": "auto", "token": "", "server_url": "", - "server_port": "32400", - "library": "" + "server_port": "32400" } \ No newline at end of file diff --git a/app/main.py b/app/main.py index 3019a28..0b5dce7 100644 --- a/app/main.py +++ b/app/main.py @@ -32,13 +32,12 @@ async def login( user: str = Form(...), pw: str = Form(...), url: str = Form(...), - port: str = Form("32400"), - library: str = Form(...) + port: str = Form("32400") ): config = load_config() theme = config.get("theme", "auto") try: - connect_plex(config, user, pw, url, port, library) + connect_plex(config, user, pw, url, port) save_config(config) return templates.TemplateResponse( "login.html", diff --git a/app/templates/login.html b/app/templates/login.html index bf2738f..7c80bd9 100644 --- a/app/templates/login.html +++ b/app/templates/login.html @@ -21,13 +21,6 @@ -