diff --git a/docker/Dockerfile b/docker/Dockerfile index fc627cb..8d0ddb0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -46,9 +46,9 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ && apt-get clean \ && find /usr/lib/chromium/locales -name '*.pak' ! -name 'en-US.pak' -delete 2>/dev/null || true \ \ - # Chromium managed policy: disable password manager and autofill save prompts + # Chromium managed policy: disable password manager, autofill and translate && mkdir -p /etc/chromium/policies/managed \ - && printf '{"PasswordManagerEnabled":false,"AutofillAddressEnabled":false,"AutofillCreditCardEnabled":false}' \ + && printf '{"PasswordManagerEnabled":false,"AutofillAddressEnabled":false,"AutofillCreditCardEnabled":false,"TranslateEnabled":false}' \ > /etc/chromium/policies/managed/policy.json \ \ && rm -rf \ diff --git a/next.config.ts b/next.config.ts index eab337e..de2d453 100644 --- a/next.config.ts +++ b/next.config.ts @@ -2,14 +2,6 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: "standalone", - async rewrites() { - return [ - { - source: "/player/:id.html", - destination: "/api/player-html/:id", - }, - ] - }, }; export default nextConfig; \ No newline at end of file diff --git a/public/player.html b/public/player.html new file mode 100644 index 0000000..c7147ea --- /dev/null +++ b/public/player.html @@ -0,0 +1,81 @@ + + +
+ + + + + + + + + + diff --git a/src/components/StreamCard.tsx b/src/components/StreamCard.tsx index b886dac..79e4f1a 100644 --- a/src/components/StreamCard.tsx +++ b/src/components/StreamCard.tsx @@ -174,7 +174,7 @@ export function StreamCard({ stream, status, localStatus, cardSize = "md", onRef function handleRunHtml() { navigate(prefs.pureMode - ? `/player/${stream.id}.html` + ? `/player.html?id=${stream.id}` : `/static/${stream.id}`) } @@ -298,12 +298,12 @@ const playBtn = `w-full flex items-center rounded border border-border bg-muted