#618 -- Fix port variable with the Icecast adapter

This commit is contained in:
Buster "Silver Eagle" Neece 2018-08-25 22:14:53 -05:00
parent 545014a707
commit 7542694a6c
1 changed files with 2 additions and 1 deletions

View File

@ -30,10 +30,11 @@ class Icecast extends FrontendAbstract
protected function _getNowPlaying(&$np, $payload = null, $include_clients = true)
{
$fe_config = (array)$this->station->getFrontendConfig();
$radio_port = $fe_config['port'];
$reader = new \App\Xml\Reader();
if (empty($payload)) {
$radio_port = $fe_config['port'];
$np_url = 'http://' . (APP_INSIDE_DOCKER ? 'stations' : 'localhost') . ':' . $radio_port . '/admin/stats';
$payload = $this->getUrl($np_url, [