Permalink
Browse files

enable the library via xml

  • Loading branch information...
1 parent 486d3e7 commit bc814487f4603a6ec0b62152f8fc17bc7fa0efb7 Jonathan Marshall committed Aug 6, 2011
Showing with 1 addition and 22 deletions.
  1. +1 −22 xbmc/video/GUIViewStateVideo.cpp
@@ -54,7 +54,6 @@ int CGUIViewStateWindowVideo::GetPlaylist()
VECSOURCES& CGUIViewStateWindowVideo::GetSources()
{
AddLiveTVSources();
- AddAddonsSource("video", g_localizeStrings.Get(1037), "DefaultAddonVideo.png");
return CGUIViewState::GetSources();
}
@@ -409,9 +408,8 @@ VECSOURCES& CGUIViewStateWindowVideoNav::GetSources()
{
// Setup shares we want to have
m_sources.clear();
- // Musicdb shares
CFileItemList items;
- CDirectory::GetDirectory("videodb://", items, "");
+ CDirectory::GetDirectory("library://video/", items, "");
for (int i=0; i<items.Size(); ++i)
{
CFileItemPtr item=items[i];
@@ -422,25 +420,6 @@ VECSOURCES& CGUIViewStateWindowVideoNav::GetSources()
share.m_iDriveType = CMediaSource::SOURCE_TYPE_LOCAL;
m_sources.push_back(share);
}
-
- {
- { // Files share
- CMediaSource share;
- share.strName=g_localizeStrings.Get(744); // Files
- share.strPath = "sources://video/";
- share.m_strThumbnailImage = CUtil::GetDefaultFolderThumb("DefaultFolder.png");
- share.m_iDriveType = CMediaSource::SOURCE_TYPE_LOCAL;
- m_sources.push_back(share);
- }
- }
- { // Playlists share
- CMediaSource share;
- share.strName=g_localizeStrings.Get(136); // Playlists
- share.strPath = "special://videoplaylists/";
- share.m_strThumbnailImage = CUtil::GetDefaultFolderThumb("DefaultVideoPlaylists.png");
- share.m_iDriveType = CMediaSource::SOURCE_TYPE_LOCAL;
- m_sources.push_back(share);
- }
return CGUIViewStateWindowVideo::GetSources();
}

0 comments on commit bc81448

Please sign in to comment.