diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 4844e833..c175659d 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -37,13 +37,15 @@ jobs: type=sha,format=short,prefix={{date 'YYYY.MM.DD'}}-,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} - - uses: https://code.forgejo.org/docker/build-push-action@v5 + - uses: https://code.forgejo.org/docker/build-push-action@v6 name: Build images with: context: . file: docker/Dockerfile tags: ${{ steps.meta.outputs.tags }} platforms: linux/amd64 + # cache-from: type=gha + # cache-to: type=gha,mode=max push: true build-args: | "release=1" diff --git a/docker/Dockerfile b/docker/Dockerfile index 6a43793e..b4d1cee4 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM crystallang/crystal:1.12.1-alpine AS builder +FROM crystallang/crystal:1.14.0-alpine AS builder RUN apk add --no-cache sqlite-static yaml-static diff --git a/src/invidious/routes/watch.cr b/src/invidious/routes/watch.cr index de5f952a..42dfd1d4 100644 --- a/src/invidious/routes/watch.cr +++ b/src/invidious/routes/watch.cr @@ -220,7 +220,7 @@ module Invidious::Routes::Watch ) begin - video_url = "https://#{URI.parse(fmt_stream[0]["url"].to_s).query_params["host"]}#{fmt_stream[0]["url"].to_s}" + video_url = fmt_stream[0]["url"].to_s rescue video_url = nil end