Browse files

[pvr] Do not change the labels for recordings found in the library

  • Loading branch information...
axmhari committed Nov 18, 2012
1 parent 9a00e24 commit 88bc1e9f7c14610b9ab9d19b4b0f8531acf088f1
@@ -439,11 +439,11 @@ void CGUIWindowPVRRecordings::AfterUpdate(CFileItemList& items)
- CGUIWindowVideoNav::LoadVideoInfo(files, m_database);
+ CGUIWindowVideoNav::LoadVideoInfo(files, m_database, false);
- CGUIWindowVideoNav::LoadVideoInfo(files, m_database);
+ CGUIWindowVideoNav::LoadVideoInfo(files, m_database, false);
@@ -394,7 +394,7 @@ void CGUIWindowVideoNav::LoadVideoInfo(CFileItemList &items)
LoadVideoInfo(items, m_database);
-void CGUIWindowVideoNav::LoadVideoInfo(CFileItemList &items, CVideoDatabase &database)
+void CGUIWindowVideoNav::LoadVideoInfo(CFileItemList &items, CVideoDatabase &database, bool allowReplaceLabels)
// TODO: this could possibly be threaded as per the music info loading,
// we could also cache the info
@@ -421,7 +421,7 @@ void CGUIWindowVideoNav::LoadVideoInfo(CFileItemList &items, CVideoDatabase &dat
setting is enabled.
const bool stackItems = items.GetProperty("isstacked").asBoolean() || (StackingAvailable(items) && g_settings.m_videoStacking);
- const bool replaceLabels = g_guiSettings.GetBool("myvideos.replacelabels");
+ const bool replaceLabels = allowReplaceLabels && g_guiSettings.GetBool("myvideos.replacelabels");
CFileItemList dbItems;
/* NOTE: In the future when GetItemsForPath returns all items regardless of whether they're "in the library"
@@ -44,8 +44,9 @@ class CGUIWindowVideoNav : public CGUIWindowVideoBase
Useful for grabbing information for file listings, from watched status to full metadata
\param items the items to load information for.
\param database open database object to retrieve the data from
+ \param allowReplaceLabels allow label replacement if according GUI setting is enabled
- static void LoadVideoInfo(CFileItemList &items, CVideoDatabase &database);
+ static void LoadVideoInfo(CFileItemList &items, CVideoDatabase &database, bool allowReplaceLabels = true);
/*! \brief Load video information from the database for these items

0 comments on commit 88bc1e9

Please sign in to comment.