Fix playlist view when private videos are in the list
This commit is contained in:
parent
7e0b108599
commit
d029c6161b
|
@ -285,7 +285,7 @@ export default Vue.extend({
|
||||||
this.channelId = result.author.id
|
this.channelId = result.author.id
|
||||||
|
|
||||||
this.playlistItems = result.items.map((video) => {
|
this.playlistItems = result.items.map((video) => {
|
||||||
if (video.author.name !== null) {
|
if (video.author !== null) {
|
||||||
const channelName = video.author.name
|
const channelName = video.author.name
|
||||||
const channelId = video.author.ref.replace(/https:\/\/(www\.)?youtube\.com\/(user|channel)\//g, '')
|
const channelId = video.author.ref.replace(/https:\/\/(www\.)?youtube\.com\/(user|channel)\//g, '')
|
||||||
video.author = channelName
|
video.author = channelName
|
||||||
|
|
|
@ -93,7 +93,7 @@ export default Vue.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
this.playlistItems = result.items.map((video) => {
|
this.playlistItems = result.items.map((video) => {
|
||||||
if (video.author.name !== null) {
|
if (video.author !== null) {
|
||||||
const channelName = video.author.name
|
const channelName = video.author.name
|
||||||
const channelId = video.author.ref.replace(/https:\/\/(www\.)?youtube\.com\/(user|channel)\//g, '')
|
const channelId = video.author.ref.replace(/https:\/\/(www\.)?youtube\.com\/(user|channel)\//g, '')
|
||||||
video.author = channelName
|
video.author = channelName
|
||||||
|
|
Loading…
Reference in New Issue