Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support mopidy #113

Open
GijsTimmers opened this issue Mar 18, 2018 · 9 comments
Open

Support mopidy #113

GijsTimmers opened this issue Mar 18, 2018 · 9 comments
Labels

Comments

@GijsTimmers
Copy link

I'm using pms v0.42 on Ubuntu 17.10.

pms works nicely with mpd, but doesn't with mopidy. The main problem is that tracks don't show up in the library.

It would be nice if pms supported mopidy.

@kimtore
Copy link
Owner

kimtore commented Mar 22, 2018

Hi @GijsTimmers.

Mopidy support is definitely a feature I'd like to implement some time soon, but version 0.42 is unsupported and there is not going to be any further development on that branch. Maybe you'd like to try the current git master instead and see how it works?

@GijsTimmers
Copy link
Author

Hi @ambientsound, thanks for your quick response. I will try that out first.

@kimtore
Copy link
Owner

kimtore commented Jun 11, 2018

Hi again,
Did you have any luck using master with Mopidy?

@GijsTimmers
Copy link
Author

GijsTimmers commented Jun 14, 2018 via email

@dvdmuckle
Copy link
Contributor

Can confirm that master of pms does not work with Mopidy right now, and will instead spit out:

Practical Music Search 86649eb
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x858f0f]

goroutine 100 [running]:
github.com/ambientsound/pms/index.(*Index).IndexFull(0x0, 0xf27338, 0x0, 0x0, 0xc00022e000, 0x0, 0x0)
	/home/dvdmuckle/Go/src/github.com/ambientsound/pms/index/index.go:175 +0xdf
github.com/ambientsound/pms/songlist.(*Library).ReIndex.func1(0xc0001723f0)
	/home/dvdmuckle/Go/src/github.com/ambientsound/pms/songlist/library.go:109 +0x8d
created by github.com/ambientsound/pms/songlist.(*Library).ReIndex
	/home/dvdmuckle/Go/src/github.com/ambientsound/pms/songlist/library.go:107 +0x92

However, and this is interesting, if I start pms with a running instance of mpd, kill the mpd instance, then start Mopidy, pms is at least able to list the songs currently in the queue, even if the songs are from a remote source like Spotify.

@dvdmuckle
Copy link
Contributor

Well, it looked like what little I was able to get working was a fluke, as I can't reproduce it now.

@dvdmuckle
Copy link
Contributor

Well, I was able to get it so I can switch tracks in the current queue, which was added from another client.

@kimtore
Copy link
Owner

kimtore commented Nov 23, 2018

This error might signify that PMS was not able to pull a full copy of the song library from MPD. This makes sense since this information might not be available from Mopidy.
Because PMS' search is based on having this information stored locally, a bigger refactor will be needed in order to fully support searching through Mopidy.

@dvdmuckle
Copy link
Contributor

That sounds about right, especially considering if other music backends like Spotify are enabled, which present a very large library to look through.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants