From cd0d3df05620b8f244a0c2b7de947cb172fa1897 Mon Sep 17 00:00:00 2001 From: woutervanwijk Date: Thu, 27 Feb 2014 18:45:18 +0100 Subject: [PATCH] removed old info for webradio and better browsing support --- webclient/index.html | 4 +--- webclient/js/controls.js | 3 ++- webclient/js/process_ws.js | 6 ++++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/webclient/index.html b/webclient/index.html index 3aa1039..ae72e0d 100755 --- a/webclient/index.html +++ b/webclient/index.html @@ -313,9 +313,7 @@

Add an url of a radio station stream that you want to listen to. The last 25 stations are saved locally (not on the server yet). - You cannot use container files like M3U, ASPX or PLS (yet), you have to add the real stream - (open the container file in a text-editor to find streams). - To find stations, use e.g. Listenlive or Listenlive or Dirble.

diff --git a/webclient/js/controls.js b/webclient/js/controls.js index 87deb1b..84c345e 100755 --- a/webclient/js/controls.js +++ b/webclient/js/controls.js @@ -81,7 +81,8 @@ function playTrack(addtoqueue) { return false; } -//normal mopidy.tracklist.add(tracks); +//normal +// mopidy.tracklist.add(tracks); //test mopidy.tracklist.add(null, 0, playlisturi); diff --git a/webclient/js/process_ws.js b/webclient/js/process_ws.js index 5d47325..a133931 100755 --- a/webclient/js/process_ws.js +++ b/webclient/js/process_ws.js @@ -98,13 +98,15 @@ function processBrowseDir(resultArr) { // console.log(rooturi); - if (rooturi.indexOf(':') == -1 ) { + child += '
  • ..

  • '; + +/* if (rooturi.indexOf(':') == -1 ) { rooturi = ''; child += '
  • ..

  • '; } else { child += '
  • ..

  • '; } - +*/ // console.log('new:' + rooturi); for (var i = 0; i < resultArr.length; i++) {