Fixed lastfm typo, added latest album column to manage artists

This commit is contained in:
Remy
2011-08-16 19:27:16 -07:00
parent e12b32d1ae
commit b8b063f123
2 changed files with 15 additions and 2 deletions

View File

@@ -21,6 +21,7 @@
<th id="select"><input type="checkbox" onClick="toggle(this)" /></th>
<th id="name">Artist Name</th>
<th id="status">Status</th>
<th id="album">Latest Album</th>
</tr>
</thead>
<tbody>
@@ -32,11 +33,22 @@
grade = 'C'
else:
grade = 'Z'
if artist['ReleaseDate'] and artist['LatestAlbum']:
releasedate = artist['ReleaseDate']
albumdisplay = '<i>%s</i> (%s)' % (artist['LatestAlbum'], artist['ReleaseDate'])
elif artist['LatestAlbum']:
releasedate = ''
albumdisplay = '<i>%s</i>' % artist['LatestAlbum']
else:
releasedate = ''
albumdisplay = '<i>None</i>'
%>
<tr class="grade${grade}">
<td id="select"><input type="checkbox" name="${artist['ArtistID']}" class="checkbox" /></td>
<td id="name"><span title="${artist['ArtistSortName']}"></span><a href="artistPage?ArtistID=${artist['ArtistID']}">${artist['ArtistName']}</a></td>
<td id="status">${artist['Status']}</td>
<td id="album"><span title="${releasedate}"></span><a href="albumPage?AlbumID=${artist['AlbumID']}">${albumdisplay}</a></td>
</tr>
%endfor
</tbody>
@@ -58,7 +70,8 @@
"aoColumns": [
null,
{ "sType": "title-string"},
null
null,
{ "sType": "title-string"}
],
"bStateSave": true,
"bPaginate": false

View File

@@ -27,7 +27,7 @@ def getSimilar():
time.sleep(1)
continue
len(data) < 200:
if len(data) < 200:
continue
d = minidom.parseString(data)