Skip to content

Commit

Permalink
Pass mount parameter to /status-json.xsl (for some services).
Browse files Browse the repository at this point in the history
  • Loading branch information
BusterNeece committed Dec 11, 2023
1 parent 20d44ab commit a2e5ab4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Adapter/Icecast.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,14 @@ public function getNowPlayingAsync(?string $mount = null, bool $includeClients =

private function getJsonNowPlaying(?string $mount = null): PromiseInterface
{
$query = [];
if (!empty($mount)) {
$query['mount'] = $mount;
}

$request = $this->requestFactory->createRequest(
'GET',
$this->baseUriWithPathAndQuery('/status-json.xsl')
$this->baseUriWithPathAndQuery('/status-json.xsl', $query)
);

return $this->getUrl($request)->then(
Expand Down

0 comments on commit a2e5ab4

Please sign in to comment.