Permalink
Browse files

now that GetBaseMoviePath always returns the folder that contains vid…

…eo_ts/bdmv items, make sure we look up info based on that path
  • Loading branch information...
1 parent 67f5e4e commit cf027b10876e8714084203e4118317e667753306 Jonathan Marshall committed Jan 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/video/windows/GUIWindowVideoNav.cpp
@@ -449,8 +449,8 @@ void CGUIWindowVideoNav::LoadVideoInfo(CFileItemList &items)
{
CFileItemPtr pItem = items[i];
CFileItemPtr match;
- if (!content.IsEmpty())
- match = dbItems.Get(pItem->GetPath());
+ if (!content.IsEmpty()) /* optical media will be stacked down, so it's path won't match the base path */
+ match = dbItems.Get(pItem->IsOpticalMediaFile() ? pItem->GetLocalMetadataPath() : pItem->GetPath());
if (match)
{
pItem->UpdateInfo(*match, replaceLabels);

0 comments on commit cf027b1

Please sign in to comment.