Skip to content

Commit

Permalink
Merge pull request #23733 from ksooo/video-fix-scan-to-lib
Browse files Browse the repository at this point in the history
[video] Fix 'Scan to library' on a directory containing a movie file doesn't work anymore.
  • Loading branch information
ksooo committed Sep 7, 2023
2 parents 279cedb + 6060ec0 commit d3c25e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions xbmc/video/windows/GUIWindowVideoBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit d3c25e5

Please sign in to comment.