Webinterface: Fixed usage of filenames as titles.

This commit is contained in:
Fabian Schlenz 2019-11-28 06:20:07 +01:00
parent fcbbdce118
commit 651843fb06

View File

@ -207,8 +207,7 @@ update_playlist = function(data) {
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);
}
}