From 37685de8569ed7338bc5ee31ad68f738ac88e34e Mon Sep 17 00:00:00 2001 From: Preston Date: Tue, 22 Sep 2020 16:56:19 -0400 Subject: [PATCH] Remove private and deleted videos from watch playlist view --- .../components/watch-video-playlist/watch-video-playlist.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/watch-video-playlist/watch-video-playlist.js b/src/renderer/components/watch-video-playlist/watch-video-playlist.js index 97abed51..5be2cf05 100644 --- a/src/renderer/components/watch-video-playlist/watch-video-playlist.js +++ b/src/renderer/components/watch-video-playlist/watch-video-playlist.js @@ -284,7 +284,9 @@ export default Vue.extend({ this.channelThumbnail = result.author.avatar this.channelId = result.author.id - this.playlistItems = result.items.map((video) => { + this.playlistItems = result.items.filter((video) => { + return !(video.title === '[Private video]' || video.title === '[Deleted video]') + }).map((video) => { if (video.author !== null) { const channelName = video.author.name const channelId = video.author.ref.replace(/https:\/\/(www\.)?youtube\.com\/(user|channel)\//g, '')