summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Voerman <rekordc@gmail.com>2014-08-03 19:16:54 +0200
committerM. Voerman <rekordc@gmail.com>2014-08-03 19:16:54 +0200
commit15ee5fdd168d311f9e3f60bbfb00ef1249f54de8 (patch)
tree93e5570c83f85eadda8475cafb3c3d332cd88cb0
parentd4ee9f80d472807553a883f82620fa6d05dd870b (diff)
downloadvdr-vipclient-15ee5fdd168d311f9e3f60bbfb00ef1249f54de8.tar.gz
vdr-vipclient-15ee5fdd168d311f9e3f60bbfb00ef1249f54de8.tar.bz2
add check for first run, no plugin check if server isn't set
-rw-r--r--index.html6
-rw-r--r--settings.js1
2 files changed, 5 insertions, 2 deletions
diff --git a/index.html b/index.html
index 0f99c2a..bac656c 100644
--- a/index.html
+++ b/index.html
@@ -146,6 +146,7 @@ function GetSettings() {
if (!is.getObject("vip.serveraddress")) {}
} catch(e) {
is.setObject("vip.serveraddress","0",is.STORAGE_PERMANENT)
+ firstrun = 1;
}
try {
@@ -254,8 +255,10 @@ function GetSettings() {
for (var i = minChan[Fav_group]; i < (maxChan[Fav_group]+10); i++) {
EPG[0][4][i] = "";EPG[1][4][i] = "";EPG[0][5][i] = "";EPG[1][5][i] = "";EPG[0][7][i] = "";EPG[1][7][i] = "";AvInfo[i] = "";
}
- //Check if there is a SmartTV or Restfulapi VDR server plugin
+ //Check if there is a SmartTV or Restfulapi VDR server plugin but not on first run.
+ if (!firstrun) {
CheckPlugins();
+ }
// override check for testing :
// smartTVplugin = 0 ;
// Restfulapiplugin = 1;
@@ -4398,7 +4401,6 @@ function MakeRecList_sublevel(GroupID) {
}
if ((recProt[i] == 1) && (ShowProtectedChannels == 1)) { recList[i] = "";}
if (recList[i] != "") { MaxInGroup = MaxInGroup + 1; }
- alert (MaxInGroup);
x = recTitl[i][1];
}
}
diff --git a/settings.js b/settings.js
index e1c6b5a..f46f15a 100644
--- a/settings.js
+++ b/settings.js
@@ -358,3 +358,4 @@ var PIPDelayID;
var ErrorAgain = 0;
var smartTVplugin; // Turn on or off the use of smartTVplugin
var Restfulapiplugin; // Turn on or off the use of Restfulapiplugin
+var firstrun = 0;// First time run or settings are cleaned.