Replace The following functions in RSSWriter.
js to process cover art properly and enable m4v Video RSS channels.
/* Write Channel Header */
function write_chlheader(objFS, artist, albumNameKey, art)
{
wrt(objFS, " <title>" + RepChars(artist + " - " + albumNameKey) +"</title>");
wrt(objFS, " <link>" + httpServer + dirRSS + "</link>");
wrt(objFS, " <description>iTunes Library</description>");
wrt(objFS, " <language>en-us</language>");
wrt(objFS, " <lastBuildDate>" + pdate + "</lastBuildDate>");
wrt(objFS, " <pubDate>" + pdate + "</pubDate>");
wrt(objFS, " <image>");
wrt(objFS, " <url>" + httpServer + dirImg + RepItem(art) + ".jpg" + "</url>");
wrt(objFS, " <title>" + RepChars(albumNameKey) + "</title>");
wrt(objFS, " <width>29</width>");
wrt(objFS, " <height>31</height>");
wrt(objFS, " </image>");
wrt(objFS, " <copyright>RSSWriter © 2008 W E Joyce. All rights reserved.</copyright>");
}
/* Write Channel Item List */
function write_chlitem(objFS, trackArray, albumNameKey)
{
for (var trackIndex in trackArray)
{
var currTrack = trackArray[trackIndex];
wrt(objFS, " <item>");
wrt(objFS, " <title>" + RepChars(currTrack.name) + "</title>");
wrt(objFS, " <link>" + httpServer + dirRSS + "</link>");
wrt(objFS, " <description>" + RepChars(currTrack.genre) + "</description>");
wrt(objFS, " <author>" + RepChars(currTrack.artist) + "</author>");
wrt(objFS, " <pubDate>" + pdate + "</pubDate>");
wrt(objFS, " <enclosure url=\"" + RepItem(currTrack.location) + "\" length=\"" + currTrack.size + ("\" type=\"audio/" + currTrack.KindAsString.replace(/AAC audio file/g,"aac").replace(/MPEG audio file/g,"mp3")).replace(/audio\/MPEG-4 video file/g, "video/m4v") + "\" />");
wrt(objFS, " </item>");
}
}