aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Sommerfeld <3226626+ksooo@users.noreply.github.com>2023-09-08 00:03:12 +0200
committerGitHub <noreply@github.com>2023-09-08 00:03:12 +0200
commitd3c25e54cc52b30be3340085c367e94cef47a4c9 (patch)
treeae504d72f71ae9ee2b42e7ee00d4af0596c28c91
parent279cedb314105b47e4baf5dc03a6fb7fb4eb55de (diff)
parent6060ec057e7a4375a021862a9887a92935c431cd (diff)
Merge pull request #23733 from ksooo/video-fix-scan-to-lib
[video] Fix 'Scan to library' on a directory containing a movie file doesn't work anymore.
-rw-r--r--xbmc/video/windows/GUIWindowVideoBase.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/xbmc/video/windows/GUIWindowVideoBase.cpp b/xbmc/video/windows/GUIWindowVideoBase.cpp
index 2a2a482bd2..2d9d522a05 100644
--- a/xbmc/video/windows/GUIWindowVideoBase.cpp
+++ b/xbmc/video/windows/GUIWindowVideoBase.cpp
@@ -263,8 +263,6 @@ bool CGUIWindowVideoBase::OnItemInfo(const CFileItem& fileItem)
item.ClearArt();
item.GetVideoInfoTag()->m_iDbId = item.GetVideoInfoTag()->m_iIdShow;
}
- item.SetProperty("original_listitem_url", item.GetPath());
- item.SetPath(item.GetVideoInfoTag()->GetPath());
}
else
{
@@ -314,7 +312,7 @@ bool CGUIWindowVideoBase::OnItemInfo(const CFileItem& fileItem)
if (fileItem.m_bIsFolder)
item.SetProperty("set_folder_thumb", fileItem.GetPath());
- return ShowInfo(std::make_shared<CFileItem>(fileItem), scraper);
+ return ShowInfo(std::make_shared<CFileItem>(item), scraper);
}
// ShowInfo is called as follows: