Set default Plex port

This commit is contained in:
Koha9
2025-06-20 22:27:01 +09:00
parent aa4223b413
commit 75a413667d
5 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -2,6 +2,6 @@
"theme": "light",
"token": "",
"server_url": "",
"server_port": "",
"server_port": "32400",
"library": ""
}
+1 -1
View File
@@ -32,7 +32,7 @@ async def login(
user: str = Form(...),
pw: str = Form(...),
url: str = Form(...),
port: str = Form(...),
port: str = Form("32400"),
library: str = Form(...)
):
config = load_config()
+1 -1
View File
@@ -19,7 +19,7 @@
</div>
<div class="mb-3">
<label for="port" class="form-label">端口</label>
<input type="text" class="form-control" id="port" name="port" placeholder="32400">
<input type="text" class="form-control" id="port" name="port" value="32400">
</div>
<div class="mb-3">
<label for="library" class="form-label">选择库</label>
+1 -1
View File
@@ -2,7 +2,7 @@ from plexapi.myplex import MyPlexAccount
from plexapi.server import PlexServer
def connect_plex(config, username, password, url, port, library):
def connect_plex(config, username, password, url, port="32400", library=""):
"""Return a connected PlexServer instance and update config with token and server info."""
token = config.get("token")
if not token: