Skip to content

Commit

Permalink
Merge pull request xbmc#1083 from pieh/load_video_info_plugins
Browse files Browse the repository at this point in the history
fix fetching playcount for plugin listings with content set
  • Loading branch information
pieh committed Jun 20, 2012
2 parents f81b951 + 3722421 commit ac77611
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions xbmc/video/windows/GUIWindowVideoNav.cpp
Expand Up @@ -361,11 +361,16 @@ void CGUIWindowVideoNav::LoadVideoInfo(CFileItemList &items)
{
// TODO: this could possibly be threaded as per the music info loading,
// we could also cache the info
if (!items.GetContent().IsEmpty())
return; // don't load for listings that have content set
if (!items.GetContent().IsEmpty() && !items.IsPlugin())
return; // don't load for listings that have content set and weren't created from plugins

CStdString content = m_database.GetContentForPath(items.GetPath());
items.SetContent(content.IsEmpty() ? "files" : content);
CStdString content = items.GetContent();
// determine content only if it isn't set
if (content.IsEmpty())
{
content = m_database.GetContentForPath(items.GetPath());
items.SetContent(content.IsEmpty() ? "files" : content);
}

/*
If we have a matching item in the library, so we can assign the metadata to it. In addition, we can choose
Expand Down

0 comments on commit ac77611

Please sign in to comment.