mopidy / mopidy-local-sqlite

DEPRECATED (Mopidy SQLite local library extension)
https://mopidy.com
Apache License 2.0
30 stars 10 forks source link

Ignore invalid/unsupported search URIs #44

Closed tkem closed 9 years ago

tkem commented 9 years ago

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.