mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
chore: some small code cleanups in PlaylistPage.vue (#3741)
This commit is contained in:
parent
0c4d948a77
commit
c80c0cea24
1 changed files with 6 additions and 5 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue