diff --git a/README.md b/README.md index 2e6b20c..503ffaf 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ PlexPlaylistSync 是一个用于同步 Plex 播放列表和本地 `.m3u`/`.m3u8` ### Token 登录 首次登录时使用用户名和密码连接 Plex 服务器,成功后程序会将获得的 `token` 保存在配置文件中,后续通信仅使用该 `token`,不再保存明文密码。 +默认情况下 Plex 服务器使用 `32400` 端口,可在未修改服务器端口时直接使用该默认值。 ## 安装 diff --git a/app/config.json b/app/config.json index 97f718a..a2822f8 100644 --- a/app/config.json +++ b/app/config.json @@ -2,6 +2,6 @@ "theme": "light", "token": "", "server_url": "", - "server_port": "", + "server_port": "32400", "library": "" } \ No newline at end of file diff --git a/app/main.py b/app/main.py index c0754f4..3019a28 100644 --- a/app/main.py +++ b/app/main.py @@ -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() diff --git a/app/templates/login.html b/app/templates/login.html index 171d23a..bf2738f 100644 --- a/app/templates/login.html +++ b/app/templates/login.html @@ -19,7 +19,7 @@