INTERACT FORUM

Please login or register.

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

Author Topic: Is there a way to retrieve the information from the ‚Seq‘-column via MCWS?  (Read 2536 times)

abachem

  • Recent member
  • *
  • Posts: 20

When retrieving a playlist from a library server via MCWS ‚Browse/Files?ID‘-request the order of the track do not reflect the order which one has set in the ‚Seq‘-column (also in JRemote/Gizmo), but JRemote has this information when displaying the playlist in its second ‚dark‘ view).

When retrieving a playlist which already resides in 'Play Now' via any MCWS-request, the tracks are in order as set in the 'Seq'-column, but not with the Browse/Files-commands.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10970

Files are sorted based on the sort criteria specified in a view. If you want it sorted by a specific column, you can just change the view to automatically sort by that, and you don't need to worry about that in any remote client.
Otherwise, the values of any database field can be requested through MCWS.
Logged
~ nevcairiel
~ Author of LAV Filters

abachem

  • Recent member
  • *
  • Posts: 20

Thanks for this quick answer. I know this, but my problem is that the order number ('Seq') or position number is not a data base field and does only appear in Playing Now, not in any view. You can set in a playlist and you can change in Playing Now by 'drag and drop' the file to the position you want. This is 'remembered' by MC (not shown in a view) but when moving the playlist to 'Playing Now'. Thus - I think - views doesn't help, since there do not reveal this information.
Logged

AndrewFG

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3392

When you get a playlist via an MCWS command, MC returns an XML payload with an <Item> entry for each track in the playlist. The sequence of the <Item> entries in the XML payload is the sequence of the tracks in the playlist. Each item may also contain a field value like <Field Name="Track #">10</Field> which indicates the track number within the album to which that particular track belongs..


Logged
Author of Whitebear Digital Media Renderer Analyser - http://www.whitebear.ch/dmra.htm
Author of Whitebear - http://www.whitebear.ch/mediaserver.htm

abachem

  • Recent member
  • *
  • Posts: 20

yes, AdnrewFG, that is true, but the order of the <item>-collection is the same as it was at the time when the tracks were imported into the library. When you change this order in MC using drag and drop of some of the tracks and subsequently apply the MC menu command 'update order', this new order is saved in MC, but MCWS-requests still return the original order at import date. Unfortunately this new order is only visible when the tracks are in 'Play Now', but once you put them into 'Play Now' via MCWS you move them in the orignal order and MC play them then in this order.
Logged
Pages: [1]   Go Up