Fix playlist view when private videos are in the list

This commit is contained in:
Preston 2020-09-21 18:32:42 -04:00
parent 7e0b108599
commit d029c6161b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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