From e58b4f5409e80657a66d14c36a654ded9d96a6a8 Mon Sep 17 00:00:00 2001 From: fk <2378306+fkrull@users.noreply.github.com> Date: Tue, 26 Dec 2023 21:45:38 +0100 Subject: [PATCH] Make frontend URL in txt playlists overridable --- .env | 1 + src/components/PlaylistPage.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env b/.env index f82ae4dc..5c9e85e3 100644 --- a/.env +++ b/.env @@ -1,4 +1,5 @@ VITE_PIPED_API=https://pipedapi.kavin.rocks VITE_PIPED_PROXY=https://pipedproxy.kavin.rocks VITE_PIPED_INSTANCES=https://piped-instances.kavin.rocks/ +VITE_PIPED_FRONTEND=https://piped.video VITE_BASE_URL=/ diff --git a/src/components/PlaylistPage.vue b/src/components/PlaylistPage.vue index d6923d5b..0166ae5c 100644 --- a/src/components/PlaylistPage.vue +++ b/src/components/PlaylistPage.vue @@ -158,7 +158,7 @@ export default { downloadPlaylistAsTxt() { var data = ""; this.playlist.relatedStreams.forEach(element => { - data += "https://piped.video" + element.url + "\n"; + data += import.meta.env.VITE_PIPED_FRONTEND + element.url + "\n"; }); this.download(data, this.playlist.name + ".txt", "text/plain"); },