diff options
| author | M. Voerman <rekordc@gmail.com> | 2014-08-26 18:04:12 +0200 |
|---|---|---|
| committer | M. Voerman <rekordc@gmail.com> | 2014-08-26 18:04:12 +0200 |
| commit | b54f576c687a03df83b3026f3d0bbdb64739cc91 (patch) | |
| tree | fd0042b3d469cf9750441ab6e77e639b8d3017c1 /index.html | |
| parent | 4a1aafd810036d069636aa598e1de2fe27587f2d (diff) | |
| download | vdr-vipclient-b54f576c687a03df83b3026f3d0bbdb64739cc91.tar.gz vdr-vipclient-b54f576c687a03df83b3026f3d0bbdb64739cc91.tar.bz2 | |
changed plugin check, now based on IP. Old test hangs when in wrong IP net.
Diffstat (limited to 'index.html')
| -rw-r--r-- | index.html | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -150,7 +150,6 @@ function GetSettings() { if (!is.getObject("vip.serveraddress")) {} } catch(e) { is.setObject("vip.serveraddress","0",is.STORAGE_PERMANENT) - firstrun = 1; } try { @@ -259,10 +258,14 @@ 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 but not on first run. - if (!firstrun) { - CheckPlugins(); + //Check if there is a SmartTV or Restfulapi VDR server plugin but not when box ip isn't the same range as server ip + test_ip = server_ip.split("."); + box_ip = (is.getObject("config.ipaddress")).split("."); + + if (("http://" + box_ip[0] == test_ip[0]) && (box_ip[1] == test_ip[1]) && (box_ip[2] == test_ip[2])) { + CheckPlugins(); } + // override check for testing : // smartTVplugin = 0 ; // Restfulapiplugin = 1; @@ -3348,7 +3351,7 @@ try { } function ShowSearchTimerInfo() { - // info about a search timer. + // info about a search timer. //Like Show EPG Info //setup some dummy vars |
