From d054d60aa495b513744eb3fcd59af952dbc0c1aa Mon Sep 17 00:00:00 2001 From: methodus Date: Wed, 31 Oct 2012 16:09:42 +0100 Subject: Added initial radio support. Unfortunatelly, I cannot test it, because I have no capable device... --- media/mediaManager.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'media') 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 { -- cgit v1.2.3