diff options
author | Jonathan Marshall <jmarshall@xbmc.org> | 2014-05-10 16:54:25 +1200 |
---|---|---|
committer | Jonathan Marshall <jmarshall@xbmc.org> | 2014-05-18 11:24:21 +1200 |
commit | 834be88ae36f754239ccef111717d8f95a284653 (patch) | |
tree | 8269126fc15c9dd78f54897e013f159192f3aaf8 | |
parent | deb6e97722b9850bba0fac4d2aab8e008981e8ce (diff) |
[upnp] properly hide the addons node
-rw-r--r-- | xbmc/network/upnp/UPnPServer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/network/upnp/UPnPServer.cpp b/xbmc/network/upnp/UPnPServer.cpp index 49a21c4fa1..4fd42af4fc 100644 --- a/xbmc/network/upnp/UPnPServer.cpp +++ b/xbmc/network/upnp/UPnPServer.cpp @@ -755,7 +755,8 @@ CUPnPServer::BuildResponse(PLT_ActionReference& action, // this isn't pretty but needed to properly hide the addons node from clients if (StringUtils::StartsWith(items.GetPath(), "library")) { for (int i=0; i<items.Size(); i++) { - if (StringUtils::StartsWith(items[i]->GetPath(), "addons")) + if (StringUtils::StartsWith(items[i]->GetPath(), "addons") || + StringUtils::EndsWith(items[i]->GetPath(), "/addons.xml/")) items.Remove(i); } } |