INTERACT FORUM

Please login or register.

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

Author Topic: MCWS feature request - MC item playlists  (Read 598 times)

hardolf

  • Regular Member
  • Recent member
  • *
  • Posts: 37
  • Retired developer
MCWS feature request - MC item playlists
« on: June 08, 2020, 06:28:26 am »

In the LyricsFinder application I have created, using MCWS, I need to show the playlist names for the currently playing MC item.
Since I cannot get this directly via MCWS, I currently do this once at the start of my application:

  • Get all playlists from MCWS, using the "/Playlist/List" function
  • Multi-threaded: For each playlist, get the MC item from MCWS, using the "/Playlist/Files" function
  • Create a dictionary (list) with MC item key as key and a list of playlist names as value

When an MC item is later played in my application, the application finds the item's playlist names from the dictionary and displays them.

The data gathering process described above is very slow and CPU intensive.
It would be a lot easier, if MCWS had a function to get the playlists directly for a specified MC item, i.e. the reverse function of the existing "/Playlist/Files" function.

In MC this information is already present and can be selected as a column in the views, so hopefully this should be possible.
Do you think that such a new MCWS function could be added in a future MC release?
Logged
Pages: [1]   Go Up