Giter VIP home page Giter VIP logo

Comments (5)

kingosticks avatar kingosticks commented on June 30, 2024

You need the development version of mopidy (version 0.12.0) that's in git, the readme should probably be updated. See mopidy/mopidy#313

from mopidy-musicbox-webclient.

Qrious avatar Qrious commented on June 30, 2024

Then I'll close this Issue, but indeed the documentation should be updated or a (temporary?) version detection should be introduced. I know this introduces legacy code , which isn't desired, but still many people install it from their apt repository.

from mopidy-musicbox-webclient.

woutervanwijk avatar woutervanwijk commented on June 30, 2024

Thanks for the report, kingosticks is right. I mentioned it in the readme under the Development section. Maybe that's not clear enough.
There is another option though if you want to use 0.11 with the recent version of the webclient. For this you have to change a file in Mopidy. It's the playlists.py file of core (in linux located in /usr/share/pyshared/mopidy/core or in OSX /Library/Python/2.7/site-packages/mopidy/core ). You have to change the function get_playlists to this:

def get_playlists(self, include_tracks=True):
   futures = [
       b.playlists.playlists for b in self.backends.with_playlists]
   results = pykka.get_all(futures)
   playlists = list(itertools.chain(*results))
   if not include_tracks:
       playlists = [p.copy(tracks=[]) for p in playlists]
   return playlists

from mopidy-musicbox-webclient.

kingosticks avatar kingosticks commented on June 30, 2024

I don't think the version of mopidy is currently exposed to the webservice. But if it was you could perhaps check (in this case) that your version was greater than v0.11.1-77-g2eb9ad7 and display a warning if not. You'd want to do this for all incompatible api changes so it might get out of hand... at least until version mopidy 1.0 and the api becomes stable.

from mopidy-musicbox-webclient.

woutervanwijk avatar woutervanwijk commented on June 30, 2024

Nice idea!

from mopidy-musicbox-webclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.