Skip to content

Commit

Permalink
Subsonic: Add stub implementation for the method getScanStatus
Browse files Browse the repository at this point in the history
The [sonixd](https://github.com/jeffvli/sonixd) client couldn't get past
the login phase when this method was not supported.

refs #926
  • Loading branch information
paulijar committed Dec 16, 2021
1 parent ac72fef commit 2d041b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## [Unreleased]
### Added
- Subsonic: Stub implementation for the method `getScanStatus`
[#926](https://github.com/owncloud/music/issues/926)

### Changed

Expand Down
7 changes: 7 additions & 0 deletions lib/Controller/SubsonicController.php
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,13 @@ private function savePlayQueue() {
return $this->subsonicResponse([]);
}

/**
* @SubsonicAPI
*/
private function getScanStatus() {
return $this->subsonicResponse(['scanStatus' => ['scanning' => 'false']]);
}

/* -------------------------------------------------------------------------
* Helper methods
*------------------------------------------------------------------------*/
Expand Down

0 comments on commit 2d041b5

Please sign in to comment.