From b06f51f3b962f9254a8fcc880d460cf2084c9603 Mon Sep 17 00:00:00 2001 From: ksooo <3226626+ksooo@users.noreply.github.com> Date: Sun, 3 Sep 2023 13:24:35 +0200 Subject: [PATCH] [video] Fix 'Local art' missing in art selection dialog. --- xbmc/video/dialogs/GUIDialogVideoInfo.cpp | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/xbmc/video/dialogs/GUIDialogVideoInfo.cpp b/xbmc/video/dialogs/GUIDialogVideoInfo.cpp index 2d662994d4a39..f33515a2bc261 100644 --- a/xbmc/video/dialogs/GUIDialogVideoInfo.cpp +++ b/xbmc/video/dialogs/GUIDialogVideoInfo.cpp @@ -1996,6 +1996,8 @@ bool CGUIDialogVideoInfo::ManageVideoItemArtwork(const std::shared_ptr thumbs; if (type != MediaTypeArtist) @@ -2056,8 +2058,7 @@ bool CGUIDialogVideoInfo::ManageVideoItemArtwork(const std::shared_ptrSetArt("icon", "DefaultActor.png"); } - - if (type == MediaTypeVideoCollection) + else if (type == MediaTypeVideoCollection) { std::string localFile = FindLocalMovieSetArtworkFile(item, artType); if (!localFile.empty()) @@ -2071,6 +2072,20 @@ bool CGUIDialogVideoInfo::ManageVideoItemArtwork(const std::shared_ptrSetArt("icon", "DefaultVideo.png"); } + else + { + localThumb = CVideoThumbLoader::GetLocalArt(*item, artType); + if (!localThumb.empty()) + { + const auto localitem = std::make_shared("thumb://Local", false); + localitem->SetArt("thumb", localThumb); + localitem->SetArt("icon", "DefaultPicture.png"); + localitem->SetLabel(g_localizeStrings.Get(13514)); + items.Add(localitem); + } + else + noneitem->SetArt("icon", "DefaultPicture.png"); + } } else { @@ -2126,6 +2141,9 @@ bool CGUIDialogVideoInfo::ManageVideoItemArtwork(const std::shared_ptr