From 0bde0b376b80e862f20e4e05675be7b66495b701 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Sun, 26 Nov 2023 00:16:28 +0100 Subject: [PATCH] Local API: Support the author-less auto-generated album playlists in video lists (#4371) --- src/renderer/helpers/api/local.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/helpers/api/local.js b/src/renderer/helpers/api/local.js index c48fcfc6d..dfc84330d 100644 --- a/src/renderer/helpers/api/local.js +++ b/src/renderer/helpers/api/local.js @@ -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 {