diff options
author | Alib <aliboba@free.fr> | 2010-03-18 18:19:38 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-18 18:19:38 +0100 |
commit | 127839c6a77457bccb174efda16dc882aff8907c (patch) | |
tree | 2a62aa91eda42851b48bd00ea9c6f8b2567c67d2 | |
parent | 6727b32a70a56216bfc41e48f49a155b417098f5 (diff) | |
download | istreamdev-127839c6a77457bccb174efda16dc882aff8907c.tar.gz istreamdev-127839c6a77457bccb174efda16dc882aff8907c.tar.bz2 |
show filename if there's no id3
-rw-r--r-- | js/istreamdev.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js index c0aee96..5db29e2 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -583,7 +583,11 @@ function gen_browser(path,browser,name,foldertype) { $("#browser" + browser).find('ul').append('<li class="arrow"><a href="#" rel="video"><img class="menuicon" src="img/video.png" /><span class="menuname">' + list.name + '</span></a></li>');
}
else if ( list.type == "audio" ) {
- $("#browser" + browser).find('ul').append('<li class="track"><a href="javascript:document.player.Play();" onclick="addplayer(this);" rel="audio"><div class="numberbox"><span class="number">' + list.number + '</span></div><span class="tracktitle">' + list.trackname + '</span><div class="timebox"><span class="time">' + list.length +'</span></div></a></li>');
+ if ( list.trackname != "" ) {
+ name = list.trackname;
+ } else {
+ name = list.name; }
+ $("#browser" + browser).find('ul').append('<li class="track"><a href="javascript:document.player.Play();" onclick="addplayer(this);" rel="audio"><div class="numberbox"><span class="number">' + list.number + '</span></div><span class="tracktitle">' + name + '</span><div class="timebox"><span class="time">' + list.length +'</span></div></a></li>');
}
});
json_complete('#browser' + browser,'cube');
|