Added librarysync, added bitrate and location to db and album template

This commit is contained in:
Remy
2011-08-15 02:32:32 -07:00
parent 98427c23ff
commit 22aef717d1
6 changed files with 231 additions and 25 deletions
+12 -7
View File
@@ -51,20 +51,24 @@
<th id="number">#</th>
<th id="name">Track Title</th>
<th id="duration">Duration</th>
<th id="location"></th>
<th id="location">Local File</th>
<th id="bitrate">Bit Rate</th>
</tr>
</thead>
<tbody>
<%
i = 0
%>
%for track in tracks:
<%
i += 1
if track['Location']:
grade = 'A'
location = track['Location']
else:
grade = 'Z'
location = ''
if track['BitRate']:
bitrate = str(track['BitRate']/1000) + ' kbps'
else:
bitrate = ''
try:
trackduration = helpers.convert_milliseconds(track['TrackDuration'])
@@ -72,10 +76,11 @@
trackduration = 'n/a'
%>
<tr class="grade${grade}">
<td id="number">${i}</td>
<td id="number">${track['TrackNumber']}</td>
<td id="name">${track['TrackTitle']}</td>
<td id="duration">${trackduration}</td>
<td id="location">${track['Location']}</td>
<td id="location">${location}</td>
<td id="bitrate">${bitrate}</td>
</tr>
%endfor
</tbody>