mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-11-22 09:56:23 +01:00
Local API: Support the author-less auto-generated album playlists in video lists (#4371)
This commit is contained in:
parent
6d00c74b7f
commit
0bde0b376b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user