diff options
author | ksooo <3226626+ksooo@users.noreply.github.com> | 2024-02-23 19:14:23 +0100 |
---|---|---|
committer | ksooo <3226626+ksooo@users.noreply.github.com> | 2024-02-23 19:15:07 +0100 |
commit | 331e80d16aad6701941cbe59a1ffaa09b8e76597 (patch) | |
tree | a904a0d0a385f083a42de961c3082ec2c8112706 | |
parent | 480476cb59264f54d0c85da2529d2bd64a4874ad (diff) |
[guiinfo] Fix LISTITEM_LABEL for movies with multiple versions only to overwrite with video version name if there is one.
-rw-r--r-- | xbmc/guilib/guiinfo/VideoGUIInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/guilib/guiinfo/VideoGUIInfo.cpp b/xbmc/guilib/guiinfo/VideoGUIInfo.cpp index 29e387fd57..3c2e32a279 100644 --- a/xbmc/guilib/guiinfo/VideoGUIInfo.cpp +++ b/xbmc/guilib/guiinfo/VideoGUIInfo.cpp @@ -533,6 +533,9 @@ bool CVideoGUIInfo::GetLabel(std::string& value, const CFileItem *item, int cont // special casing for "show videos with multiple versions as folders", where the label // should be the video version, not the movie title. + if (!item->HasVideoVersions()) + break; + CGUIWindow* videoNav{ CServiceBroker::GetGUI()->GetWindowManager().GetWindow(WINDOW_VIDEO_NAV)}; if (videoNav && videoNav->GetProperty("VideoVersionsFolderView").asBoolean() && |