INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: I get a 500 error from the webservice when retrieving the current playlist  (Read 1487 times)

PaulSinnema

  • Galactic Citizen
  • ****
  • Posts: 393
  • You don't know what you're missing until its gone

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

Logged

PaulSinnema

  • Galactic Citizen
  • ****
  • Posts: 393
  • You don't know what you're missing until its gone

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
Logged

PaulSinnema

  • Galactic Citizen
  • ****
  • Posts: 393
  • You don't know what you're missing until its gone

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
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!

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.
Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up