aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzard <fuzzard@users.noreply.github.com>2023-12-06 12:27:39 +1000
committerGitHub <noreply@github.com>2023-12-06 12:27:39 +1000
commitc966f681e766b53aad6bb5b6e25b7ec8c9ee5842 (patch)
tree05e173b2bcf4ca75a20aabd49c7606129268942e
parent7fe30ded8ebb1c838955e647794a8f34e244f254 (diff)
parent4374c72d87524fc720c34d7fc922a3767c78f806 (diff)
Merge pull request #24177 from thexai/fix-video-db-cast
[VideoDatabase] Fix unnecessary query is always made to obtain cast
-rw-r--r--xbmc/video/VideoDatabase.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/video/VideoDatabase.cpp b/xbmc/video/VideoDatabase.cpp
index 1fcd532b62..cc872df413 100644
--- a/xbmc/video/VideoDatabase.cpp
+++ b/xbmc/video/VideoDatabase.cpp
@@ -4290,7 +4290,8 @@ CVideoInfoTag CVideoDatabase::GetDetailsForMovie(const dbiplus::sql_record* cons
if (getDetails)
{
- GetCast(details.m_iDbId, MediaTypeMovie, details.m_cast);
+ if (getDetails & VideoDbDetailsCast)
+ GetCast(details.m_iDbId, MediaTypeMovie, details.m_cast);
if (getDetails & VideoDbDetailsTag)
GetTags(details.m_iDbId, MediaTypeMovie, details.m_tags);