Skip to content

Commit

Permalink
partial fix of multiroom selector
Browse files Browse the repository at this point in the history
  • Loading branch information
volumio committed Dec 12, 2016
1 parent 23b1a58 commit 4bc5ff3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/plugins/system_controller/volumiodiscovery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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(),
Expand Down

0 comments on commit 4bc5ff3

Please sign in to comment.