From 99613327f886b2ada9a4ab822a640e805735c29b Mon Sep 17 00:00:00 2001 From: Givou Date: Mon, 2 Nov 2026 20:32:35 +0100 Subject: [PATCH] Start animation also in German The app's new port means empty browser storage, so a German app reloaded right after the start and lost the animation. The language now comes with the login. Co-Authored-By: Claude Opus 5.5 --- server.py | 2 +- static/index.html | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/server.py b/server.py index 7033dd3..9fbc46d 100644 --- a/server.py +++ b/server.py @@ -1160,7 +1160,7 @@ class App: cookie = self.app_login(parse_qs(url.query).get("t", [""])[0]) if cookie: await self.respond(writer, 302, b"", "text/plain", - "Location: /?start=app\r\n" + self.cookie(cookie, SESSION_TTL)) + f"Location: /?start=app&lang={self.lang or 'en'}\r\n" + self.cookie(cookie, SESSION_TTL)) else: await self.respond(writer, 401, b"invalid app token", "text/plain") return diff --git a/static/index.html b/static/index.html index a5fa999..71835b8 100644 --- a/static/index.html +++ b/static/index.html @@ -17,10 +17,13 @@ DSP ControlVK-Audio