summaryrefslogtreecommitdiff
path: root/media/mediaManager.cpp
diff options
context:
space:
mode:
authormethodus <methodus@web.de>2012-10-31 16:09:42 +0100
committermethodus <methodus@web.de>2012-10-31 16:09:42 +0100
commitd054d60aa495b513744eb3fcd59af952dbc0c1aa (patch)
tree2c78b37270c99b3f89187f34548c48526d3fc839 /media/mediaManager.cpp
parent459052ebbc27e93285c11de71eb2d26810e932d3 (diff)
downloadvdr-plugin-upnp-d054d60aa495b513744eb3fcd59af952dbc0c1aa.tar.gz
vdr-plugin-upnp-d054d60aa495b513744eb3fcd59af952dbc0c1aa.tar.bz2
Added initial radio support. Unfortunatelly, I cannot test it, because I have no capable device...
Diffstat (limited to 'media/mediaManager.cpp')
-rw-r--r--media/mediaManager.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/media/mediaManager.cpp b/media/mediaManager.cpp
index 885b085..c59e357 100644
--- a/media/mediaManager.cpp
+++ b/media/mediaManager.cpp
@@ -747,15 +747,13 @@ bool cMediaManager::ScanURI(const string& uri, cUPnPResourceProvider* provider){
string schema = uri.substr(0, uri.find_first_of(':',0));
for(cPluginManager::ProfilerList::iterator it = profilers.begin(); it != profilers.end(); ++it){
if((*it)->CanHandleSchema(schema)){
- if(!(*it)->GetMetadata(uri, metadata) || !RefreshObject(metadata)){
- isyslog("UPnP\tUnable to save the metadata of '%s'", uri.c_str());
- return false;
- } else {
+ if((*it)->GetMetadata(uri, metadata) && RefreshObject(metadata)){
return true;
}
}
}
+ isyslog("UPnP\tUnsupported resource: '%s' skipped.", uri.c_str());
return false;
} else {