I whipped up some quick PHP to further parse the list into an HTML table that looks kind of nice, if anyone is interested:
(I slightly modified Cosmo's code to include genre and be parsed correctly with PHP)
Foobar: Copy Command:$if($strcmp($num(%tracknumber%,2),01),[%artist%][ -- %album%][ -- %date%][ -- %genre% ])
Foobar: Album list panel view string:Name: albumlist
Value: $if($strcmp($num(%tracknumber%,2),01),[%artist%][ - %album%][ - %date%][ - %genre% ])
Remember, once you copy your playlist, save it as 'albums.txt' in your webserver.
albums.php (or whatever you want to call it):<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Album List</title><style type="text/css">
<!--/*--><![CDATA[/*><!--*/
body {
background-color: #000;
padding-bottom: 0 !important;
padding-bottom: 35px;
}
table {
width: 85%;
margin: 35px 0px;
border: 1px solid #575757;
background: #212121;
font: 10px Verdana, Arial, Helvetica, sans-serif;
text-align: left;
color: #fff;
}
td {
border-right: 1px solid #666;
padding: 3px;
}
#header {
font-weight: bold;
background: url(img/playlist_bg.png) repeat-x 0% 0%;
}
#header td {
border-right: 0;
border-bottom: 1px solid #666;
}
.stripe {
background: #333;
}
.last {
border-right: 0;
}
/*]]>*/-->
</style>
</head>
<body><center>
<table cellspacing=0>
<tr id="header">
<td> </td><td>Artist</td><td>Album</td><td>Year</td><td
class=last>Genre</td></tr>
<?php
$filename = "albums.txt"; $handle = fopen($filename, "r"); $contents = fread
($handle, filesize($filename)); fclose($handle); $playlist = explode("\n",
$contents);
for ($i = 0; $i < count($playlist); $i++) {
$xx = explode(" -- ", $playlist[$i]);
$vis = $i + 1;
$mod = $vis % 2;
if ($mod == '0') {
$str = 'class=stripe';
} else {
$str = '';
}
echo "<tr $str><td width=10 align=left>" . $vis . "</td><td>$xx[0]
</td><td>$xx[1]</td><td>$xx[2]</td><td>$xx[3]</td></tr>";
} ?></center></body></html>
PS: sorry for the messy code, I wrote this pretty quick. Overall, I think it looks pretty clean/neat.
Edit: Code touchups.