aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Sommerfeld <3226626+ksooo@users.noreply.github.com>2024-07-14 03:24:54 +0200
committerGitHub <noreply@github.com>2024-07-14 03:24:54 +0200
commitf557b34dc1239a35a5369b98955c9835b89b9e95 (patch)
tree959f41250c69eca1264e467e844c45b9c05d9fdf
parent7e5bb325bda3f121709578cf61f6fdfcd665260b (diff)
parent7d70dd71cd728d8e87fd593eae6473ce74fec075 (diff)
Merge pull request #25489 from ksooo/video-fix-show-info-omega
[Omega][video] Do not show video info dialog if item has an empty video info tag
-rw-r--r--xbmc/filesystem/VideoDatabaseDirectory.cpp2
-rw-r--r--xbmc/video/windows/GUIWindowVideoBase.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/filesystem/VideoDatabaseDirectory.cpp b/xbmc/filesystem/VideoDatabaseDirectory.cpp
index 2c9caa7080..97618694ff 100644
--- a/xbmc/filesystem/VideoDatabaseDirectory.cpp
+++ b/xbmc/filesystem/VideoDatabaseDirectory.cpp
@@ -105,7 +105,7 @@ bool CVideoDatabaseDirectory::GetDirectory(const CURL& url, CFileItemList &items
if (!strImage.empty() && CServiceBroker::GetGUI()->GetTextureManager().HasTexture(strImage))
item->SetArt("icon", strImage);
}
- if (item->GetVideoInfoTag())
+ if (item->HasVideoInfoTag())
{
item->SetDynPath(item->GetVideoInfoTag()->GetPath());
}
diff --git a/xbmc/video/windows/GUIWindowVideoBase.cpp b/xbmc/video/windows/GUIWindowVideoBase.cpp
index a66e869b77..e8ba199e19 100644
--- a/xbmc/video/windows/GUIWindowVideoBase.cpp
+++ b/xbmc/video/windows/GUIWindowVideoBase.cpp
@@ -412,7 +412,7 @@ bool CGUIWindowVideoBase::ShowInfo(const CFileItemPtr& item2, const ScraperPtr&
}
m_database.Close();
}
- else if(item->HasVideoInfoTag())
+ else if (item->HasVideoInfoTag() && !item->GetVideoInfoTag()->IsEmpty())
{
bHasInfo = true;
movieDetails = *item->GetVideoInfoTag();