mopidy/mopidy — pull request #215 by jodal (2012-10-27 22:11:30+00:00)
Title: Initial support for multiple backends

This implements wishlist issue #40.

You can search for music across the backends and mix local and Spotify tracks in the same current playlist. Stored playlists from all backends are available.

The multi-backend support for stored playlists is not complete. I found the stored playlists API odd, and that's not a surprise, since we've never used it for anything else than retrieving the list of stored playlists. The stored playlists API should be introduced to real usage and be revised, and then updated with full multi-backend support.

- TODO 1: Use and revise stored playlists API
- TODO 2: Complete multi-backend support for stored playlists

Where the return value from multiple backends are combined into a single return value, I've sorted the results in the order of the backends. In other words, moving around the values in the `BACKENDS` setting will affect the order of the results. I suggest that we prioritize the local results above the Spotify results, as local music is more likely to be what you are looking for since it's a collection you've built yourself.

- TODO 3: Document how the order of the `BACKENDS` affects the result order
- TODO 4: Move the local backend to the top of the `BACKENDS` default value

The documentation needs to be updated with the possibilities that support for multiple simultaneous backends brings.

- TODO 5: Update changelog, add examples of multi-backend use

Feel free to merge and close this pull request, and we'll follow up the to do items in #40 instead.