jleuzinger;130818 Wrote:
> Which XML-tags are required by Trackstat ?I just tried to look in the
> TrackStat code and haven't tried to actually
import this, but I think the tags shown in the example below are the
onces that are interested. The "Play Count", "Play Date UTC", "Rating"
tags should be optional and should not cause a crash if they are
missing (I think). The "Date Added" isn't actually used in the import
but its read and I think it might cause a crash if it doesn't exist.
The "Track ID" and "Location" tags are a requirement, if they doesn't
exist the import would probably crash.
Code:
--------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Music
Folder</key><string>file://localhost/D:/Egna/My%20Music/iTunes/iTunes%20Music/</string>
<key>Tracks</key>
<dict>
<key>1</key>
<dict>
<key>Track ID</key><integer>1</integer>
<key>Date Added</key><date>2006-01-05T16:44:58Z</date>
<key>Play Count</key><integer>1</integer>
<key>Play Date UTC</key><date>2006-03-18T11:57:20Z</date>
<key>Rating</key><integer>60</integer>
<key>Location</key><string>file://localhost/D:/Egna/My%20Music/iTunes/iTunes%20Music/Artist1/1%20Track1.mp3</string>
</dict>
</dict>
<dict>
<key>2</key>
<dict>
<key>Track ID</key><integer>2</integer>
<key>Date Added</key><date>2006-01-06T11:41:32Z</date>
<key>Play Count</key><integer>3</integer>
<key>Play Date UTC</key><date>2006-04-15T10:52:43Z</date>
<key>Rating</key><integer>80</integer>
<key>Location</key><string>file://localhost/D:/Egna/My%20Music/iTunes/iTunes%20Music/Artist1/1%20Track2.mp3</string>
</dict>
</dict>
</dict>
</plist>
--------------------
--
erland
Erland Isaksson
'My homepage' (http://erland.homeip.net) 'My download page'
(http://erland.homeip.net/download)
(Developer of 'TrackStat'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-trackstat)
, 'SQLPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-sqlplaylist)
, 'DynamicPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-dynamicplaylist)
and 'RandomPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-randomplaylist)
plugins)
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=20533
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins