Mopidy-MusicBox-Webclient passes local: as the uri parameter to Library.search when limiting search to a specific backend. Although technically this is not a valid Mopidy-Local-SQLite URI -- the "root" of the local URI space is Library.ROOT_DIRECTORY_URI, which is local:directory -- raising an "Invalid search URI" exception may be an overly drastic reaction.
In general, it may be preferable to just log a warning for unsupported search URIs and treat them as a root URI otherwise.
Mopidy-MusicBox-Webclient passes
local:
as theuri
parameter toLibrary.search
when limiting search to a specific backend. Although technically this is not a valid Mopidy-Local-SQLite URI -- the "root" of the local URI space isLibrary.ROOT_DIRECTORY_URI
, which islocal:directory
-- raising an "Invalid search URI" exception may be an overly drastic reaction.In general, it may be preferable to just log a warning for unsupported search URIs and treat them as a root URI otherwise.