summaryrefslogtreecommitdiff
path: root/smarttv-client/Javascript/Server.js
diff options
context:
space:
mode:
authorthlo <t.lohmar@gmx.de>2012-12-26 21:58:29 +0100
committerthlo <t.lohmar@gmx.de>2012-12-26 21:58:29 +0100
commite13c617a3b97b3707038c31cd18ef49686c36d3d (patch)
tree74fbd46619d105905f76c6a679ed614406a1b2c3 /smarttv-client/Javascript/Server.js
parent86fe990eb0641f74cee509e51079d7a5cab27d6f (diff)
downloadvdr-plugin-smarttvweb-e13c617a3b97b3707038c31cd18ef49686c36d3d.tar.gz
vdr-plugin-smarttvweb-e13c617a3b97b3707038c31cd18ef49686c36d3d.tar.bz2
Fixes and improvements of initial widget configuration.
Diffstat (limited to 'smarttv-client/Javascript/Server.js')
-rwxr-xr-xsmarttv-client/Javascript/Server.js7
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++) {