INTERACT FORUM
More => Old Versions => JRiver Media Center 27 for Windows => Topic started by: DrKNo on August 18, 2020, 08:47:01 am
-
I'm currently implementing methods for dealing with playlists in pymcws. Some of this, for example Playback/SetPlaylist take a serialized playlist as an argument. The documentation is not really helpful here - somewhere it's noted that it's just a list of keys, but comma separating keys didn't work for me (MCWS returned 200 OK, but didn't do anything).
After some trial and error and getting example values form files/search, I figured out that it expects a list of semicolon separated values, where the first three values have a special meaning. And this is my question.
- Value one seems to be "2" in all examples I found. What does it indicate? What are other options?
- Value two seem to be the number of keys in the list
- Value three is mostly -1 or positive, I believe that is the active item in the list?
So, what is the first value?
-
SetPlaylist is really mostly for internal use. The "2" is the version, only 2 is being accepted at this point. The other you got right already, its count and position (or -1 for none).
-
Thank you, Hendrik! Should I use another call to set the playlist without stating playback?
-
It's fine, the playlist structure is simple enough.