diff --git a/docs/changes.rst b/docs/changes.rst index fd065b34..af54fd83 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -49,6 +49,9 @@ v0.13.0 (in development) - Upgrade Mopidy.js' dependencies when.js from 1.6.1 to 1.8.1. +- Expose :meth:`mopidy.core.Core.get_uri_schemes` to HTTP clients. It is + available through Mopidy.js as ``mopidy.getUriSchemes()``. + **MPRIS frontend** - Publish album art URIs if available. diff --git a/mopidy/frontends/http/ws.py b/mopidy/frontends/http/ws.py index d325c359..7f24850f 100644 --- a/mopidy/frontends/http/ws.py +++ b/mopidy/frontends/http/ws.py @@ -20,6 +20,7 @@ class WebSocketResource(object): self._core = core_proxy inspector = jsonrpc.JsonRpcInspector( objects={ + 'core.get_uri_schemes': core.Core.get_uri_schemes, 'core.library': core.LibraryController, 'core.playback': core.PlaybackController, 'core.playlists': core.PlaylistsController, @@ -28,6 +29,7 @@ class WebSocketResource(object): self.jsonrpc = jsonrpc.JsonRpcWrapper( objects={ 'core.describe': inspector.describe, + 'core.get_uri_schemes': self._core.get_uri_schemes, 'core.library': self._core.library, 'core.playback': self._core.playback, 'core.playlists': self._core.playlists,