Skip to content

Commit

Permalink
Upnp BugFix
Browse files Browse the repository at this point in the history
Fixed bad behaviour which prevented upmpdcli to have hostname assigned if Shairport was not enabled
  • Loading branch information
volumio committed Nov 29, 2014
1 parent fdb1e0c commit 30040ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/player_wrk.php
Expand Up @@ -289,7 +289,6 @@

// Shairport for Airplay Capability
//Retrieve Output Device
if (isset($_SESSION['shairport']) && $_SESSION['shairport'] == 1) {
$dbh = cfgdb_connect($db);
$query_cfg = "SELECT param,value_player FROM cfg_mpd WHERE value_player!=''";
$mpdcfg = sdbquery($query_cfg,$dbh);
Expand All @@ -305,6 +304,7 @@
}
}
// Start Shairport with Volumio name, stopping Mpd on start, with Selected output device
if (isset($_SESSION['shairport']) && $_SESSION['shairport'] == 1) {
playerSession('open',$db);
$hostname = $_SESSION['hostname'];
$tempfile = '/tmp/.restart_mpd'; // if this file exists, start playing mpd after shairport stopped
Expand Down

0 comments on commit 30040ab

Please sign in to comment.