This article shows the data transfer format between Deluxe CD Player and its servers. It is for developers who intend to write their own DeluxeCD compatible client or server.
The server output uses the HTTP transfer protocol and has the same structure as Windows *.INI files (see e.g. GetPrivateProfileString() in the Windows API reference).
| CERTIFICATE |
Holds a certificate string of 48 characters length depending on the provider name and provider url.
Your application may ignore this value. However, Deluxe CD player does not accept data from servers with wrong or missing certificate string. The string may be in upper or lower case letters.
See also Server Certificates.
|
Example
CERTIFICATE=45A761848DCA48F5E21A59BAD22F06B789B1616FF99C8ECE |
| Mode |
| Holds the return code of the query request. See also examples later in this article.
The following modes are known: |
Mode=0 | The album information has been found and is listed in the output stream. |
Mode=1 | There is more than one set of album information. See Mode=1 discussion below in the examples. |
Mode=2 | The album information could not be found in the database. |
| Title |
| Title of the CD |
Example
Title=Thriller |
| Artist |
| Artist of the CD |
Example
Artist=Michael Jackson |
| Track[n] |
Where [n] stands for a track number between 1 and 99: Track information; in general the song name. |
Example
Track1=Wanna Be Startin' Somethin' |
| Menu[n] |
Where [n] stands for a number.
This optional data gives information about a hyperlink related to the inserted cd. The hyperlink is then available as menu item of Deluxe CD Player.
The menu item text and the hyperlink are separated by two colons ::. More than one item is allowed.
|
Example
Menu1=More about The Beatles::http://www.beatles.com
Shows the following menu (please watch the last menu item): |  | |
|
| URL[n] |
Where [n] stands for a number.
If mode=1 one there is listed one URL for every entry found in the database.
See complete mode=1 example below.
|
Example
URL1=http://www.threetix.net/cgi-bin/query.php?dbID=27926724&v=1 |
| Artist[n] |
Where [n] stands for a number.
If mode=1 one there is listed one artist for every entry found in the database.
See complete mode=1 example below.
|
Example
Artist1=Strelki |
| Title[n] |
Where [n] stands for a number.
If mode=1 one there is listed one title for every entry found in the database.
See complete mode=1 example below.
|
Example
Title1=Sipy i Rozy (using russian charset) |
Copyright
Label
ReleaseDate
CoverLarge
CoverSmall
|
| This optional data are stored in deluxecd.mdb (if given) but not used by the Deluxe CD Player application. |
Example(s)
Copyright=19650701
Label=Apple Records
ReleaseDate=19650701
CoverLarge=http://www.beatles.com/fantasy_image_name1.jpg
CoverSmall=http://www.beatles.com/fantasy_image_name2.jpg
|
| Mode=0 - entry found |
[CD]
CERTIFICATE=45A761848DCA48F5E21A59BAD22F06B789B1616FF99C8ECE
Mode=0
Artist=Michael Jackson
Title=Thriller
Track1=Wanna Be Startin' Somethin'
Track2=Baby Be Mine
Track3=The Girl Is Mine
Track4=Thriller
Track5=Beat It
Track6=Billie Jean
Track7=Human Nature
Track8=P.Y.T. (Pretty Young Thing)
Track9=The Lady In My Life
|
| Mode=1 - more than one entry found |
If there is more than one entry found in the database - e.g. different CDs or info in different languages - data are returned with Mode set to 1.
For each entry in the database, an URL[n], Artist[n] and Title[n] will be listed. The application will prompt the user which entry to download (showing title and artist).
If the user has made his selection, the application can retrieve the data under the given URL.
Please note that the format and parameters of the URL may vary from server to server and should be used as given.
|
[CD]
CERTIFICATE=45A761848DCA48F5E21A59BAD22F06B789B1616FF99C8ECE
Mode=1
URL1=http://www.threetix.net/cgi-bin/query.php?dbID=27926724&v=1
Artist1=Strelki
Title1=Sipy i Rozy (using russian charset)
URL2=http://www.threetix.net/cgi-bin/query.php?dbID=27926724&v=2
Artist2=Strelki
Title2=Sipy i Rozy
| Shows this dialog box: |  | |
|
| Mode=2 - no entry found |
[CD]
CERTIFICATE=45A761848DCA48F5E21A59BAD22F06B789B1616FF99C8ECE
Mode=2
|