aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);