diff options
author | Miguel Borges de Freitas <92enen@gmail.com> | 2023-09-05 13:14:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 13:14:03 +0100 |
commit | d025684d226cb88f1169bf6dfcc60d5fe4312b67 (patch) | |
tree | b1de3c070c6c69c9201990e79d29d1faaa750ca0 | |
parent | ad82a1cf0b166e2e3e253c44db341e22762421f7 (diff) | |
parent | 406cbecc6f68d8ba4f5f716206785b7685776de2 (diff) | |
download | xbmc-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.cpp | 5 |
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(); } |