Centova Technologies Forum

Centova Cast v2 => Technical discussion => Topic started by: KoenVDS on March 02, 2012, 10:58:12 am

Title: Add multiple tracks at once using API
Post by: KoenVDS on March 02, 2012, 10:58:12 am
Hi,

I'm trying to use the API to add tracks to a playlist.

The documentation says: "Specifies a keyword matching the filesystem path of the track(s) which should be added or removed. Note that these tracks must already exist in the media library."

Do I interprete this incorrectly when I think that adding multiple tracks at once should be possible ? I have added the request I use to try this, but only the first track is added to the playlist, so I was wondering if anybody else did manage to do this ?

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<centovacast>
  <request method="playlist" class="server">
    <password>pw</password>
    <username>uname</username>
    <action>add</action>
    <playlist>33331</playlist>
    <trackpath>186100.mp3</trackpath>
    <trackpath>212000.mp3</trackpath>
  </request>
</centovacast>
Title: Re: Add multiple tracks at once using API
Post by: Centova - Steve B. on March 03, 2012, 10:30:00 am
Only one keyword is supported per API call.  That keyword may match one or more track(s), all of which will be added.