mirror of
				https://github.com/SuperBFG7/ympd
				synced 2025-10-31 22:03:01 +00:00 
			
		
		
		
	Revert some changes: There's no need to print the artist/album for each song while browsing.
This commit is contained in:
		| @@ -364,17 +364,17 @@ function webSocketConnect() { | |||||||
|                                 var minutes = Math.floor(obj.data[item].duration / 60); |                                 var minutes = Math.floor(obj.data[item].duration / 60); | ||||||
|                                 var seconds = obj.data[item].duration - minutes * 60; |                                 var seconds = obj.data[item].duration - minutes * 60; | ||||||
|  |  | ||||||
| //                                if (typeof obj.data[item].artist === 'undefined') { |                                 if (obj.data[item].artist == null) { | ||||||
| //                                    var details = "<td colspan=\"2\">" + obj.data[item].title + "</td>"; |                                     var artist = "<td colspan=\"2\">"; | ||||||
| //                                } else { |                                 } else { | ||||||
| //                                    var details = "<td>" + obj.data[item].artist + "<span>" + obj.data[item].album + "</span></td><td>" + obj.data[item].title + "</td>"; |                                     var artist = "<td>" + obj.data[item].artist + | ||||||
| //                                } |                                                      "<span>" + obj.data[item].album + "</span></td><td>"; | ||||||
|  |                                 } | ||||||
|  |  | ||||||
|                                 $('#salamisandwich > tbody').append( |                                 $('#salamisandwich > tbody').append( | ||||||
|                                     "<tr uri=\"" + encodeURI(obj.data[item].uri) + "\" class=\"song\">" + |                                     "<tr uri=\"" + encodeURI(obj.data[item].uri) + "\" class=\"song\">" + | ||||||
|                                     "<td><span class=\"glyphicon glyphicon-music\"></span></td>" + |                                     "<td><span class=\"glyphicon glyphicon-music\"></span></td>" + | ||||||
|                                     "<td>" + obj.data[song].artist + "<span>" + obj.data[song].album + "</span></td>" + |                                     artist + obj.data[item].title + "</td>" + | ||||||
|                                     "<td>" + obj.data[song].title + "</td>" + |  | ||||||
|                                     "<td>" + minutes + ":" + (seconds < 10 ? '0' : '') + seconds + |                                     "<td>" + minutes + ":" + (seconds < 10 ? '0' : '') + seconds + | ||||||
|                                     "</td><td></td></tr>" |                                     "</td><td></td></tr>" | ||||||
|                                 ); |                                 ); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 eb041592
					eb041592