1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-12-27 03:10:26 +00:00

More details for songdetails view

This commit is contained in:
jcorporation 2018-07-09 18:50:21 +01:00
parent 44d0c1d56e
commit 6c1cf3e745
2 changed files with 3 additions and 1 deletions

View File

@ -685,8 +685,10 @@
<tbody>
<tr data-name="artist"><td>Artist</td><td></td></tr>
<tr data-name="album"><td>Album</td><td></td></tr>
<tr data-name="track"><td>Track</td><td></td></tr>
<tr data-name="albumartist"><td>Albumartist</td><td></td></tr>
<tr data-name="genre"><td>Genre</td><td></td></tr>
<tr data-name="date"><td>Date</td><td></td></tr>
<tr data-name="uri"><td>Uri</td><td></td></tr>
</tbody>
</table>

View File

@ -1132,7 +1132,7 @@ function songDetails(uri) {
function parseSongDetails(obj) {
var modal = document.getElementById('modalSongDetails');
modal.querySelector('.album-cover').style.backgroundImage = 'url(' + obj.data.cover + ')';
modal.querySelector('.album-cover').style.backgroundImage = 'url("' + obj.data.cover + '")';
modal.getElementsByTagName('h1')[0].innerText = obj.data.title;
var tr = modal.getElementsByTagName('tr');
var trLen = tr.length;