diff options
author | Kai Sommerfeld <3226626+ksooo@users.noreply.github.com> | 2023-09-08 00:03:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 00:03:12 +0200 |
commit | d3c25e54cc52b30be3340085c367e94cef47a4c9 (patch) | |
tree | ae504d72f71ae9ee2b42e7ee00d4af0596c28c91 | |
parent | 279cedb314105b47e4baf5dc03a6fb7fb4eb55de (diff) | |
parent | 6060ec057e7a4375a021862a9887a92935c431cd (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.cpp | 4 |
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: |