From 4bc5ff365b624e5e7bf11a639fb554ff0ec830bd Mon Sep 17 00:00:00 2001 From: volumio Date: Mon, 12 Dec 2016 00:02:13 +0000 Subject: [PATCH] partial fix of multiroom selector --- app/plugins/system_controller/volumiodiscovery/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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(),