Local API: Support the author-less auto-generated album playlists in video lists (#4371)

This commit is contained in:
absidue 2023-11-26 00:16:28 +01:00 committed by GitHub
parent 6d00c74b7f
commit 0bde0b376b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -482,9 +482,13 @@ export function parseLocalListPlaylist(playlist, author = undefined) {
channelName = playlist.author.name
channelId = playlist.author.id
}
} else {
} else if (author) {
channelName = author.name
channelId = author.id
} else if (playlist.author?.name) {
// auto-generated album playlists don't have an author
// so in search results, the author text is "Playlist" and doesn't have a link or channel ID
channelName = playlist.author.name
}
return {