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

A bug in SoundCloud playing? #13

Closed
gjtorikian opened this issue Feb 26, 2014 · 3 comments
Closed

A bug in SoundCloud playing? #13

gjtorikian opened this issue Feb 26, 2014 · 3 comments

Comments

@gjtorikian
Copy link

mpd 0.17.0 added some new-ish support for SoundCloud URLs.

In a Ruby script, I can execute

`mpc load soundcloud://track/121108619`

To queue a new URL. With this library, the following does not work:

mpd.load "soundcloud://track/121108619"

The error is:

MPD::ConnectionError (Broken pipe (got disconnected)):

Note that this should be load, not add, because MPD considers these to be playlists.

@archseer
Copy link
Owner

Currently there is no mpd.load method. I've abstracted the playlists into MPD::Playlist objects, so creating an object and calling playlist.load to load it into the queue should work. I admit that building object-oriented wrappers around this was/is pretty experimental, so quirks like these are bound to pop up.

Based on how the wrapper works internally, I think this should work:

playlist = MPD::Playlist.new(mpd, "soundcloud://track/121108619")
playlist.load

@archseer
Copy link
Owner

archseer commented Mar 2, 2014

@gjtorikian Did my answer help resolve this issue?

@gjtorikian
Copy link
Author

Sorry, I was out on vacation.

Your solution worked perfectly! Thanks.

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

No branches or pull requests

2 participants