Skip to content

MPDClient.playid() not working #125

Open

Description

@JoergZ2

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.

Activity

  1. JoergZ2 commented on Sep 11, 2020

    @JoergZ2
    Author

    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?

  2. Mic92 commented on Sep 22, 2020

    @Mic92
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions