http: Expose core.get_uri_schemes (Fixes #361)

This commit is contained in:
Stein Magnus Jodal 2013-03-30 21:01:35 +01:00
parent e6460b6945
commit 4414deae1d
2 changed files with 5 additions and 0 deletions

View File

@ -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.

View File

@ -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,