summaryrefslogtreecommitdiff
path: root/js/istreamdev.js
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-18 18:19:38 +0100
committerAlib <aliboba@free.fr>2010-03-18 18:19:38 +0100
commit127839c6a77457bccb174efda16dc882aff8907c (patch)
tree2a62aa91eda42851b48bd00ea9c6f8b2567c67d2 /js/istreamdev.js
parent6727b32a70a56216bfc41e48f49a155b417098f5 (diff)
downloadistreamdev-127839c6a77457bccb174efda16dc882aff8907c.tar.gz
istreamdev-127839c6a77457bccb174efda16dc882aff8907c.tar.bz2
show filename if there's no id3
Diffstat (limited to 'js/istreamdev.js')
-rw-r--r--js/istreamdev.js6
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');