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

MPDClient.playid() not working #125

Open
JoergZ2 opened this issue Sep 10, 2020 · 2 comments
Open

MPDClient.playid() not working #125

JoergZ2 opened this issue Sep 10, 2020 · 2 comments

Comments

@JoergZ2
Copy link

JoergZ2 commented Sep 10, 2020

I try to call a song from playlist by using the function MPDClient.playid() but it throws an error:
File "/usr/local/lib/python3.8/dist-packages/mpd/base.py", line 527, in _read_line raise CommandError(error) mpd.base.CommandError: [50@0] {} No such song
The number of playid is valid (int and in range)! Function MPDClientplay() works well but for that I've to calculate user input minus 1 because play... counts from 0 an playid should count from 1. Am I missunderstanding playid() or isn't playid() not implemented correctly.

@JoergZ2
Copy link
Author

JoergZ2 commented Sep 11, 2020

Now I've discovered that the songid is not a absolute identifier, but changes every time a playlist (even if it is the same one) is loaded. So I can only start with a specific song from a playlist if I know the position and use the function MPDClient.play() with the position number. Just out of interest: What purpose should the songid serve?

@Mic92
Copy link
Owner

Mic92 commented Sep 22, 2020

Not quite sure what the purpose is. Maybe ask upstream on their github tracker or in #mpd on freenode.

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