Skip to content

Commit

Permalink
media library: add UPnP servers to sources://<mediatype>
Browse files Browse the repository at this point in the history
  • Loading branch information
Montellese committed Oct 26, 2014
1 parent c84ac5a commit 7626023
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion xbmc/filesystem/SourcesDirectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
*
*/

#include "system.h"
#include "SourcesDirectory.h"
#include "utils/URIUtils.h"
#include "URL.h"
#include "Util.h"
#include "Directory.h"
#include "FileItem.h"
#include "File.h"
#include "profiles/ProfilesManager.h"
Expand Down Expand Up @@ -55,7 +57,16 @@ bool CSourcesDirectory::GetDirectory(const CURL& url, CFileItemList &items)
sources = *sourcesFromType;
g_mediaManager.GetRemovableDrives(sources);

return GetDirectory(sources, items);
if (!GetDirectory(sources, items))
return false;

#ifdef HAS_UPNP
CFileItemList upnpServers;
if (CDirectory::GetDirectory("upnp://", upnpServers))
items.Append(upnpServers);
#endif

return true;
}

bool CSourcesDirectory::GetDirectory(const VECSOURCES &sources, CFileItemList &items)
Expand Down

0 comments on commit 7626023

Please sign in to comment.