INTERACT FORUM

More => Old Versions => JRiver Media Center 27 for Windows => Topic started by: DrKNo on August 18, 2020, 08:47:01 am

Title: [MCWS] Question regarding playlist serialization
Post 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.


So, what is the first value?
Title: Re: [MCWS] Question regarding playlist serialization
Post by: Hendrik on August 18, 2020, 09:45:05 am
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).
Title: Re: [MCWS] Question regarding playlist serialization
Post by: DrKNo on August 18, 2020, 10:00:24 am
Thank you, Hendrik! Should I use another call to set the playlist without stating playback?
Title: Re: [MCWS] Question regarding playlist serialization
Post by: Hendrik on August 18, 2020, 10:29:02 am
It's fine, the playlist structure is simple enough.