PDA

View Full Version : unexpected output from xml/status.xml



Frank Gleason
2004-03-11, 23:40
when I run xml/status.xml I get the output listed below (cut down for
clarity). The information from <track> to <path>
is the same for each item in the play list, it's the information for
the currently playing mp3. What I want is the
<path> for each file in the playlist. Is this a bug, or am I using the
wrong command? The 'playlist.xml' command
does not print the <path>.

thanks,
fg


<title>Minho Waltz</title>
<genre>Celtic</genre>

<genre_browse_url><![CDATA[xml/browseid3.xml?genre=Celtic]]></
genre_browse_url>
<artist>The Chieftains</artist>

<artist_browse_url><![CDATA[xml/browseid3.xml?
genre=*&artist=The%20Chieftains]]></artist_brow
se_url>
<album>Santiago</album>

<album_browse_url><![CDATA[xml/browseid3.xml?
genre=*&artist=*&album=Santiago]]></album_browse
_url>
<track>9</track>
<type>MP3</type>
<duration>3:21</duration>
<year>1996</year>
<comment>Created by Grip</comment>
<filelength>4,835,727</filelength>
<bitrate>192kbps CBR</bitrate>
<tagversion>ID3v2.3.0</tagversion>
<modtime>Thursday, March 11, 2004, 9:32:23 PM</modtime>

<song_url>/music/The%20Chieftains/santiago/minho_waltz.mp3</song_url>
<path>/hda5/music/9001/The
Chieftains/santiago/minho_waltz.mp3</path>


<title>12. Up Around The Bend</title>

<genre>Celtic</genre>

<genre_browse_url><![CDATA[xml/browseid3.xml?genre=Celtic]]></
genre_browse_url>
<artist>Creedence Clearwater Revival</artist>

<artist_browse_url><![CDATA[xml/browseid3.xml?
genre=*&artist=Creedence%20Clearwater%20Revival]]></a
rtist_browse_url>
<album>Chronicle, Volume I</album>

<album_browse_url><![CDATA[xml/browseid3.xml?
genre=*&artist=*&album=Chronicle,%20Volume%20I]]></alb
um_browse_url>
<track>9</track>
<type>MP3</type>
<duration>3:21</duration>
<year>1996</year>
<comment>Created by Grip</comment>
<filelength>4,835,727</filelength>
<bitrate>192kbps CBR</bitrate>
<tagversion>ID3v2.3.0</tagversion>
<modtime>Thursday, March 11, 2004, 9:32:23 PM</modtime>

<song_url>/music/The%20Chieftains/santiago/minho_waltz.mp3</song_url>
<path>/hda5/music/9001/The
Chieftains/santiago/minho_waltz.mp3</path>

dean
2004-05-10, 10:57
Hi Frank,

I just came upon this message that I meant to reply to some time ago.

I just checked in a fix that consistently includes to items in the XML
skin to indicate the location of a song in the various pages, including
the status page:

<song_url><![CDATA[file:///Users/dean/Music/iTunes/iTunes%20Music/
Big%20Mama%20Thornton/The%20Way%20It%20Is/
01%20Little%20Red%20Rooster.mp3]]></song_url>
<download_url><![CDATA[/music/iTunes/iTunes%20Music/
Big%20Mama%20Thornton/The%20Way%20It%20Is/
01%20Little%20Red%20Rooster.mp3]]></download_url>

The first is the absolute URL indicating the location of the song
itself.
The second is a URL that indicates how you might stream this file from
the server.

-dean

On Mar 11, 2004, at 10:40 PM, Frank Gleason wrote:

> when I run xml/status.xml I get the output listed below (cut down for
> clarity). The information from <track> to <path>
> is the same for each item in the play list, it's the information for
> the currently playing mp3. What I want is the
> <path> for each file in the playlist. Is this a bug, or am I using the
> wrong command? The 'playlist.xml' command
> does not print the <path>.
>
> thanks,
> fg
>
>
> <title>Minho Waltz</title>
> <genre>Celtic</genre>
>
> <genre_browse_url><![CDATA[xml/browseid3.xml?genre=Celtic]]></
> genre_browse_url>
> <artist>The Chieftains</artist>
>
> <artist_browse_url><![CDATA[xml/browseid3.xml?
> genre=*&artist=The%20Chieftains]]></artist_brow
> se_url>
> <album>Santiago</album>
>
> <album_browse_url><![CDATA[xml/browseid3.xml?
> genre=*&artist=*&album=Santiago]]></album_browse
> _url>
> <track>9</track>
> <type>MP3</type>
> <duration>3:21</duration>
> <year>1996</year>
> <comment>Created by Grip</comment>
> <filelength>4,835,727</filelength>
> <bitrate>192kbps CBR</bitrate>
> <tagversion>ID3v2.3.0</tagversion>
> <modtime>Thursday, March 11, 2004, 9:32:23 PM</modtime>
>
> <song_url>/music/The%20Chieftains/santiago/minho_waltz.mp3</song_url>
> <path>/hda5/music/9001/The
> Chieftains/santiago/minho_waltz.mp3</path>
>
>
> <title>12. Up Around The Bend</title>
>
> <genre>Celtic</genre>
>
> <genre_browse_url><![CDATA[xml/browseid3.xml?genre=Celtic]]></
> genre_browse_url>
> <artist>Creedence Clearwater Revival</artist>
>
> <artist_browse_url><![CDATA[xml/browseid3.xml?
> genre=*&artist=Creedence%20Clearwater%20Revival]]></a
> rtist_browse_url>
> <album>Chronicle, Volume I</album>
>
> <album_browse_url><![CDATA[xml/browseid3.xml?
> genre=*&artist=*&album=Chronicle,%20Volume%20I]]></alb
> um_browse_url>
> <track>9</track>
> <type>MP3</type>
> <duration>3:21</duration>
> <year>1996</year>
> <comment>Created by Grip</comment>
> <filelength>4,835,727</filelength>
> <bitrate>192kbps CBR</bitrate>
> <tagversion>ID3v2.3.0</tagversion>
> <modtime>Thursday, March 11, 2004, 9:32:23 PM</modtime>
>
> <song_url>/music/The%20Chieftains/santiago/minho_waltz.mp3</song_url>
> <path>/hda5/music/9001/The
> Chieftains/santiago/minho_waltz.mp3</path>
>
>
>
>