Make frontend URL in txt playlists overridable

This commit is contained in:
fk 2023-12-26 21:45:38 +01:00
parent c3bc24ea62
commit e58b4f5409
2 changed files with 2 additions and 1 deletions

1
.env
View file

@ -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=/

View file

@ -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");
},