aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Borges de Freitas <92enen@gmail.com>2023-09-05 13:14:03 +0100
committerGitHub <noreply@github.com>2023-09-05 13:14:03 +0100
commitd025684d226cb88f1169bf6dfcc60d5fe4312b67 (patch)
treeb1de3c070c6c69c9201990e79d29d1faaa750ca0
parentad82a1cf0b166e2e3e253c44db341e22762421f7 (diff)
parent406cbecc6f68d8ba4f5f716206785b7685776de2 (diff)
downloadxbmc-d025684d226cb88f1169bf6dfcc60d5fe4312b67.tar.xz
Merge pull request #23723 from ksooo/video-fix-musicvideo-info
[video] Fix no information dialog for music videos.
-rw-r--r--xbmc/video/windows/GUIWindowVideoBase.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/xbmc/video/windows/GUIWindowVideoBase.cpp b/xbmc/video/windows/GUIWindowVideoBase.cpp
index a1643d10b1..2a2a482bd2 100644
--- a/xbmc/video/windows/GUIWindowVideoBase.cpp
+++ b/xbmc/video/windows/GUIWindowVideoBase.cpp
@@ -239,7 +239,8 @@ bool CGUIWindowVideoBase::OnItemInfo(const CFileItem& fileItem)
if (!scraper && !(fileItem.IsPlugin() || fileItem.IsScript()) &&
!(m_database.HasMovieInfo(fileItem.GetDynPath()) || m_database.HasTvShowInfo(strDir) ||
- m_database.HasEpisodeInfo(fileItem.GetDynPath())))
+ m_database.HasEpisodeInfo(fileItem.GetDynPath()) ||
+ m_database.HasMusicVideoInfo(fileItem.GetDynPath())))
{
HELPERS::ShowOKDialogText(CVariant{20176}, // Show video information
CVariant{19055}); // no information available
@@ -396,7 +397,7 @@ bool CGUIWindowVideoBase::ShowInfo(const CFileItemPtr& item2, const ScraperPtr&
}
if (info->Content() == CONTENT_MUSICVIDEOS)
{
- bHasInfo = m_database.GetMusicVideoInfo(item->GetPath(), movieDetails);
+ bHasInfo = m_database.GetMusicVideoInfo(item->GetDynPath(), movieDetails);
}
m_database.Close();
}