aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaveTBlake <oak99sky@yahoo.co.uk>2017-01-17 17:27:24 +0000
committerDaveTBlake <oak99sky@yahoo.co.uk>2017-01-17 17:27:24 +0000
commiteda27175c9f7ca5fc34b800888f36f9bbca96810 (patch)
tree26cf3dc23949baa0cd760f16d9c251a49b1cbe51
parent11ef60ec5fd3f22a4e1219b8c7cbdac13115609e (diff)
Restore caching for slow plugins
-rw-r--r--xbmc/filesystem/PluginDirectory.cpp2
-rw-r--r--xbmc/interfaces/legacy/ModuleXbmcplugin.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/xbmc/filesystem/PluginDirectory.cpp b/xbmc/filesystem/PluginDirectory.cpp
index caff5c36b0..76eaf43174 100644
--- a/xbmc/filesystem/PluginDirectory.cpp
+++ b/xbmc/filesystem/PluginDirectory.cpp
@@ -227,7 +227,7 @@ void CPluginDirectory::EndOfDirectory(int handle, bool success, bool replaceList
return;
// set cache to disc
- dir->m_listItems->SetCacheToDisc(CFileItemList::CACHE_NEVER);
+ dir->m_listItems->SetCacheToDisc(cacheToDisc ? CFileItemList::CACHE_IF_SLOW : CFileItemList::CACHE_NEVER);
dir->m_success = success;
dir->m_listItems->SetReplaceListing(replaceListing);
diff --git a/xbmc/interfaces/legacy/ModuleXbmcplugin.h b/xbmc/interfaces/legacy/ModuleXbmcplugin.h
index 2237ccd204..081e27bc07 100644
--- a/xbmc/interfaces/legacy/ModuleXbmcplugin.h
+++ b/xbmc/interfaces/legacy/ModuleXbmcplugin.h
@@ -131,8 +131,8 @@ namespace XBMCAddon
/// @param updateListing [opt] bool - True=this folder should
/// update the current listing/False=Folder
/// is a subfolder(Default).
- /// @param cacheToDisc [opt] bool - True=Allow folder to be cached
- /// (default)/False=this folder
+ /// @param cacheToDisc [opt] bool - True=Folder will cache if
+ /// extended time(default)/False=this folder
/// will never cache to disc.
///
///