diff options
author | thlo <smarttv640@gmail.com> | 2012-12-26 21:58:29 +0100 |
---|---|---|
committer | thlo <t.lohmar@gmx.de> | 2012-12-26 21:58:29 +0100 |
commit | 527ee6674d0b82747b9cd39a530bc8f23522c304 (patch) | |
tree | 74fbd46619d105905f76c6a679ed614406a1b2c3 /smarttv-client/Javascript/Server.js | |
parent | b92b1fc101a5a5ba8bb212e7bebc31ccc94f8dc1 (diff) | |
download | vdr-plugin-smarttvweb-527ee6674d0b82747b9cd39a530bc8f23522c304.tar.gz vdr-plugin-smarttvweb-527ee6674d0b82747b9cd39a530bc8f23522c304.tar.bz2 |
Fixes and improvements of initial widget configuration.
Diffstat (limited to 'smarttv-client/Javascript/Server.js')
-rwxr-xr-x | smarttv-client/Javascript/Server.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/smarttv-client/Javascript/Server.js b/smarttv-client/Javascript/Server.js index 588906b..c64d320 100755 --- a/smarttv-client/Javascript/Server.js +++ b/smarttv-client/Javascript/Server.js @@ -60,6 +60,8 @@ Server.fetchVideoList = function(url) { Server.createVideoList = function() {
alert ("creating Video list now");
+ Main.log("creating Video list now");
+
var splashElement = document.getElementById("splashStatus");
widgetAPI.putInnerHTML(splashElement, "Creating Video list now" );
@@ -96,6 +98,11 @@ Server.createVideoList = function() { {
widgetAPI.putInnerHTML(splashElement, "Parsing ...");
var items = xmlElement.getElementsByTagName("item");
+ if (items.length == 0) {
+ Display.showPopup("Something wrong. Response does not contain any item");
+ Main.log("Something wrong. Response does not contain any item");
+
+ };
for (var index = 0; index < items.length; index++) {
|