INTERACT FORUM

Windows => Third Party Plug-ins, Programs, and Skins => Topic started by: PaulSinnema on August 06, 2011, 12:55:45 am

Title: I get a 500 error from the webservice when retrieving the current playlist
Post by: PaulSinnema on August 06, 2011, 12:55:45 am
Hi,

I'm adding the current playlist to the MCRemote control at the moment and for that I need to create a virtual list that maintains the items in a list. When an item is visible on the remote it should get these items from MC and as soon as they fall out of sight these items should be dropped.

In order to be able to do this I need to get the list of keys of the currently playing list. I issue the following command:

http://localhost:52199/MCWS/v1/Playlist/Files?playlistType=ID&Playlist=-1&Action=serialize (with Zone information too of course).

When I do this I get an 500 error (page not found). When I issue the same command with an ID of another list like so:

http://localhost:52199/MCWS/v1/Playlist/Files?playlistType=ID&Playlist=291066796&Action=serialize

I get a nice semicolon separated list of keys.

Is it a bug or am I doing something wrong?

Regards
Paul

Title: Re: I get a 500 error from the webservice when retrieving the current playlist
Post by: PaulSinnema on August 06, 2011, 04:22:49 am
Hi,

Another related question is:

When I retrieve a playlist with only 1 song in it I get a list with 4 items. Where do the first 3 items come from?

Request:
http://localhost:52199/MCWS/v1/Playlist/Files?playlistType=ID&Playlist=784792637&Action=serialize

Result:
2;1;-1;736


Regards
Paul
Title: Re: I get a 500 error from the webservice when retrieving the current playlist
Post by: PaulSinnema on August 06, 2011, 09:28:20 am
Hi,

I've found out that I can get the 'Playing Now' playlist by using the /Playback/Playlist instead of /Playlist/Files with ID=-1. So that's solved now. The Virtual List works like a charm.

Remains the question about the first 3 entries in the list.

Regards
Paul
Title: Re: I get a 500 error from the webservice when retrieving the current playlist
Post by: Matt on August 06, 2011, 09:38:05 am
Remains the question about the first 3 entries in the list.

I think it's version, number of items, active index, and then the list of keys.