Webinterface: Fixed usage of filenames as titles.
This commit is contained in:
parent
fcbbdce118
commit
651843fb06
@ -207,8 +207,7 @@ update_playlist = function(data) {
|
|||||||
if (file) {
|
if (file) {
|
||||||
file = file.substr(1);
|
file = file.substr(1);
|
||||||
$('#album').html(file.substr(0, file.indexOf('/')));
|
$('#album').html(file.substr(0, file.indexOf('/')));
|
||||||
file = file.substr(file.indexOf('/')+1);
|
$('#track').html(file.title);
|
||||||
$('#track').html(file.substr(0, file.lastIndexOf('.')));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user