aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpieh <misiek.piechowiak@gmail.com>2012-08-21 23:29:34 +0200
committerpieh <misiek.piechowiak@gmail.com>2012-08-31 21:03:26 +0200
commit4f9f8e7f24647dbca8683df9b91e3a21aa77502f (patch)
tree6e37e4fbc1e47c20c30b098c3f8421a62d5544b4
parent9c3c4de83a577003c009ca5e85332d2485fbd208 (diff)
revert DirectoryNodeOverview.cpp changes from 973831c
"videodb://" directory was empty after that commit, revert fixes it and so fixes empty upnp server video node
-rw-r--r--xbmc/filesystem/VideoDatabaseDirectory/DirectoryNodeOverview.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/xbmc/filesystem/VideoDatabaseDirectory/DirectoryNodeOverview.cpp b/xbmc/filesystem/VideoDatabaseDirectory/DirectoryNodeOverview.cpp
index 2b0f0e9846..e8c9b75a33 100644
--- a/xbmc/filesystem/VideoDatabaseDirectory/DirectoryNodeOverview.cpp
+++ b/xbmc/filesystem/VideoDatabaseDirectory/DirectoryNodeOverview.cpp
@@ -65,10 +65,6 @@ CStdString CDirectoryNodeOverview::GetLocalizedName() const
bool CDirectoryNodeOverview::GetContent(CFileItemList& items) const
{
- CVideoDbUrl videoUrl;
- if (!videoUrl.FromString(BuildPath()))
- return false;
-
CVideoDatabase database;
database.Open();
bool hasMovies = database.HasContent(VIDEODB_CONTENT_MOVIES);
@@ -105,14 +101,10 @@ bool CDirectoryNodeOverview::GetContent(CFileItemList& items) const
if (hasMusicVideos)
vec.push_back(make_pair("6", 20390)); // Recently Added Music Videos
}
-
+ CStdString path = BuildPath();
for (unsigned int i = 0; i < vec.size(); ++i)
{
- CVideoDbUrl itemUrl = videoUrl;
- CStdString strDir; strDir.Format("%s/", vec[i].first);
- itemUrl.AppendPath(strDir);
-
- CFileItemPtr pItem(new CFileItem(itemUrl.ToString()));
+ CFileItemPtr pItem(new CFileItem(path + vec[i].first + "/", true));
pItem->SetLabel(g_localizeStrings.Get(vec[i].second));
pItem->SetLabelPreformated(true);
pItem->SetCanQueue(false);