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

Fix: display of like in songdetails

This commit is contained in:
jcorporation 2018-09-11 21:08:48 +01:00
parent c4bd90609e
commit 0e9cc45f5f

View File

@ -1477,8 +1477,8 @@ function parseSongDetails(obj) {
if (obj.data.like == 0)
like = '<span class="material-icons">thumb_down_alt</span>';
else if (obj.data.like == 2)
'<span class="material-icons">thumb_up_alt</span>';
songDetails += '<tr class="stickers"><th colspan="2">Statistics</th></tr>' +
like = '<span class="material-icons">thumb_up_alt</span>';
songDetails += '<tr><th colspan="2">Statistics</th></tr>' +
'<tr><th>Play count</th><td>' + obj.data.playCount + '</td></tr>' +
'<tr><th>Skip count</th><td>' + obj.data.skipCount + '</td></tr>' +
'<tr><th>Last played</th><td>' + (obj.data.lastPlayed == 0 ? 'never' : new Date(value * 1000).toUTCString()) + '</td></tr>' +