Forum Moderators: open
function itemMonitor(obj)
{
gid('nowplaying').innerHTML = '<span class="style1">Now Playing: ' + player.getPlaylist()[obj.index].file.split('/')[1].split('.')[0] + '</span>';
};
...because some of the files have urlencoded filenames I want them to appear without the %27's and such, so I tried this:
function itemMonitor(obj)
{
gid('nowplaying').innerHTML = '<span class="style1">Now Playing: ' + player.getPlaylist()[obj.index]._utf8_decode(unescape(file)).split('/')[1].split('.')[0] + '</span>';
};
But since it's expecting a string in the unescape argument it doesnt work. Is there any way I can change the command so that it'll urldecode the filename rather than the word "file" in this case?