diff --git a/data/index.html b/data/index.html
index e4c0029..8b1c53f 100644
--- a/data/index.html
+++ b/data/index.html
@@ -93,6 +93,20 @@
×
+
+
@@ -173,7 +187,7 @@ update_playlist = function(data) {
tr = $('
').data('track', i);
tr.append($('').html(i + 1));
tr.append($(' | ').html(data.current_track==i ? '' : ''));
- tr.append($(' | ').html(data.files[i].substr(data.files[i].lastIndexOf('/')+1)));
+ tr.append($(' | ').html(data.files[i].substr(data.files[i].title)));
$('#track_list').append(tr);
}
@@ -189,12 +203,10 @@ update_playlist = function(data) {
$('#button_track_prev').removeClass('btn-primary').addClass('btn-secondary', 'btn-disabled');
}
+ $('#album').html(data.title);
var file = data.files[data.current_track];
if (file) {
- file = file.substr(1);
- $('#album').html(file.substr(0, file.indexOf('/')));
- file = file.substr(file.indexOf('/')+1);
- $('#track').html(file.substr(0, file.lastIndexOf('.')));
+ $('#track').html(file.title);
}
}
@@ -249,6 +261,7 @@ process_ws_message = function(event) {
for (var i=0; i
|