diff --git a/app/plugins/system_controller/volumiodiscovery/index.js b/app/plugins/system_controller/volumiodiscovery/index.js index a7f3a7bcc..db17df5ac 100755 --- a/app/plugins/system_controller/volumiodiscovery/index.js +++ b/app/plugins/system_controller/volumiodiscovery/index.js @@ -369,12 +369,12 @@ ControllerVolumioDiscovery.prototype.getDevices=function() var addresses=foundVolumioInstances.get(key+'.addresses'); - + for(var j in addresses) { var address=addresses[j]; if (isSelf){ - + ifconfig.status('wlan0', function(err, status) { if (status != undefined) { if (status.ipv4_address != undefined) { @@ -390,6 +390,11 @@ ControllerVolumioDiscovery.prototype.getDevices=function() } else { var albumartstring = 'http://'+address+'/albumart'; } + + if (addresses && addresses[0] && addresses[0].value && addresses[0].value[0].value) { + address = addresses[0].value[0].value; + } + var device={ id:key, host:'http://'+address.toString(),