aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxbmc <fernetmenta@online.de>2012-12-27 17:03:13 +0100
committerxbmc <fernetmenta@online.de>2012-12-27 17:11:55 +0100
commit1c022c6542b37c8a2cea8f1d1610769d95490c88 (patch)
treeab7dfde0dbd6b19be3938cba7e1071bdcfab0b60
parent84fe3114d61cf95275f6f987f9889647bd77b546 (diff)
pvr: fix video info scanner for recordings after 5ca0942b257aca62378bedf94733758547a7e659
-rw-r--r--xbmc/filesystem/PVRDirectory.cpp9
-rw-r--r--xbmc/filesystem/PVRDirectory.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/xbmc/filesystem/PVRDirectory.cpp b/xbmc/filesystem/PVRDirectory.cpp
index d979190f17..b1710fb09d 100644
--- a/xbmc/filesystem/PVRDirectory.cpp
+++ b/xbmc/filesystem/PVRDirectory.cpp
@@ -44,6 +44,15 @@ CPVRDirectory::~CPVRDirectory()
{
}
+bool CPVRDirectory::Exists(const char* strPath)
+{
+ CStdString directory(strPath);
+ if (directory.substr(0,17) == "pvr://recordings/")
+ return true;
+ else
+ return false;
+}
+
bool CPVRDirectory::GetDirectory(const CStdString& strPath, CFileItemList &items)
{
CStdString base(strPath);
diff --git a/xbmc/filesystem/PVRDirectory.h b/xbmc/filesystem/PVRDirectory.h
index 25fa93ab63..fef9a5528f 100644
--- a/xbmc/filesystem/PVRDirectory.h
+++ b/xbmc/filesystem/PVRDirectory.h
@@ -39,6 +39,8 @@ public:
static bool IsLiveTV(const CStdString& strPath);
static bool HasRecordings();
+ virtual bool Exists(const char* strPath);
+
private:
};