diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64 index 8508d4fa..ce691c91 100644 --- a/docker/Dockerfile.arm64 +++ b/docker/Dockerfile.arm64 @@ -2,7 +2,7 @@ ARG OPENSSL_VERSION='3.5.2' ARG OPENSSL_SHA256='c53a47e5e441c930c3928cf7bf6fb00e5d129b630e0aa873b08258656e7345ec' -FROM alpine:3.23 AS dependabot-alpine +FROM alpine:3.22 AS dependabot-alpine # We compile openssl ourselves due to a memory leak in how crystal interacts # with openssl @@ -21,7 +21,7 @@ RUN tar -xzvf openssl-${OPENSSL_VERSION}.tar.gz RUN cd openssl-${OPENSSL_VERSION} && ./Configure --openssldir=/etc/ssl && make -j$(nproc) FROM dependabot-alpine AS builder -RUN apk add --no-cache 'crystal=1.18.2-r0' shards \ +RUN apk add --no-cache 'crystal=1.16.3-r0' shards \ sqlite-static yaml-static yaml-dev \ pcre2-static gc-static \ libxml2-static zlib-static \ @@ -63,7 +63,7 @@ RUN --mount=type=cache,target=/root/.cache/crystal if [[ "${release}" == 1 ]] ; --link-flags "-lxml2 -llzma"; \ fi -FROM alpine:3.23 +FROM alpine:3.22 RUN apk add --no-cache rsvg-convert ttf-opensans tini tzdata WORKDIR /invidious RUN addgroup -g 1000 -S invidious && \ diff --git a/src/invidious/routes/companion.cr b/src/invidious/routes/companion.cr index c435281a..6ad1850e 100644 --- a/src/invidious/routes/companion.cr +++ b/src/invidious/routes/companion.cr @@ -37,7 +37,6 @@ module Invidious::Routes::Companion end end - def self.options_companion(env) current_companion = env.get("current_companion").as(Int32) diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr index 5ddafbac..32258836 100644 --- a/src/invidious/views/components/player.ecr +++ b/src/invidious/views/components/player.ecr @@ -1,3 +1,6 @@ +<% + invidious_companion_check_id = invidious_companion_encrypt(video.id) if invidious_companion +%>