From d029c6161baa997ca85cc3ff492cafff3d0518b6 Mon Sep 17 00:00:00 2001 From: Preston Date: Mon, 21 Sep 2020 18:32:42 -0400 Subject: [PATCH] Fix playlist view when private videos are in the list --- .../components/watch-video-playlist/watch-video-playlist.js | 2 +- src/renderer/views/Playlist/Playlist.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 e4844e764..97abed515 100644 --- a/src/renderer/components/watch-video-playlist/watch-video-playlist.js +++ b/src/renderer/components/watch-video-playlist/watch-video-playlist.js @@ -285,7 +285,7 @@ export default Vue.extend({ this.channelId = result.author.id this.playlistItems = result.items.map((video) => { - if (video.author.name !== null) { + if (video.author !== null) { const channelName = video.author.name const channelId = video.author.ref.replace(/https:\/\/(www\.)?youtube\.com\/(user|channel)\//g, '') video.author = channelName diff --git a/src/renderer/views/Playlist/Playlist.js b/src/renderer/views/Playlist/Playlist.js index 54c9983d3..463f31891 100644 --- a/src/renderer/views/Playlist/Playlist.js +++ b/src/renderer/views/Playlist/Playlist.js @@ -93,7 +93,7 @@ export default Vue.extend({ } this.playlistItems = result.items.map((video) => { - if (video.author.name !== null) { + if (video.author !== null) { const channelName = video.author.name const channelId = video.author.ref.replace(/https:\/\/(www\.)?youtube\.com\/(user|channel)\//g, '') video.author = channelName