diff --git a/src/components/Playlist.vue b/src/components/Playlist.vue index 4622bde1..35ace3ed 100644 --- a/src/components/Playlist.vue +++ b/src/components/Playlist.vue @@ -69,6 +69,11 @@ export default { async getPlaylistData() { this.fetchPlaylist() .then(data => (this.playlist = data)) + .then(() => + this.playlist.relatedStreams.forEach(video => { + video.url += "&list=" + this.$route.query.list; + }), + ) .then(() => (document.title = this.playlist.name + " - Piped")); }, handleScroll() { diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index b4ea7d28..2f472e3d 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -131,7 +131,7 @@ {{ showRecs ? $t("actions.minimize_recommendations") : $t("actions.show_recommendations") }}
{ @@ -266,6 +273,14 @@ export default { '"]', }); }, + async fetchPlaylist() { + return await await this.fetchJson(this.apiUrl() + "/playlists/" + this.$route.query.list); + }, + async getPlaylistData() { + this.fetchPlaylist() + .then(data => (this.playlist = data)) + .then(() => (document.title = this.playlist.name + " - Piped")); + }, fetchComments() { return this.fetchJson(this.apiUrl() + "/comments/" + this.getVideoId()); },