chore: some small code cleanups in PlaylistPage.vue (#3741)
Build and Lint / build (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Azure Static Web Apps CI/CD / Build and Deploy Job (push) Has been cancelled
Docker Multi-Architecture Build / build-docker-image (push) Has been cancelled
Build and Deploy / build (push) Has been cancelled

This commit is contained in:
Bnyro
2024-07-29 16:32:57 +02:00
committed by GitHub
parent 0c4d948a77
commit c80c0cea24
+6 -5
View File
@@ -131,7 +131,7 @@ export default {
this.loading = false;
this.playlist.relatedStreams.push(...json.relatedStreams);
this.updateTotalDuration();
this.fetchDeArrowContent(this.playlist.relatedStreams);
this.fetchDeArrowContent(json.relatedStreams);
});
}
},
@@ -157,10 +157,11 @@ export default {
});
},
downloadPlaylistAsTxt() {
var data = "";
this.playlist.relatedStreams.forEach(element => {
data += "https://piped.video" + element.url + "\n";
});
const data = this.playlist.relatedStreams
.map(video => {
return "https://piped.video" + video.url;
})
.join("\n");
this.download(data, this.playlist.name + ".txt", "text/plain");
},
async bookmarkPlaylist() {