From 9129dcd9a2f2105a4269bf3f5ef34f0e3aa85bff Mon Sep 17 00:00:00 2001 From: "M. Voerman" Date: Wed, 3 Jul 2013 13:17:21 +0200 Subject: timer to stop duplicate instant recordings.( Default 15 minutes) Updated some files --- index.html | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) (limited to 'index.html') diff --git a/index.html b/index.html index 4b44279..f868ea3 100644 --- a/index.html +++ b/index.html @@ -1169,7 +1169,7 @@ function GetEPG(epgchan) EPG[0][4][epgchan] = ""; EPG[0][5][epgchan] = ""; if (event.parentalRating) { - EPG[0][8][epgchan] = "
( from " + (event.parentalRating + 3) + ")"; + EPG[0][8][epgchan] = "
( from " + (event.parentalRating + 3) + " )"; } else { EPG[0][8][epgchan] = ""; } @@ -1215,7 +1215,7 @@ function GetEPG(epgchan) EPG[1][4][epgchan] = ""; EPG[1][5][epgchan] = ""; if (event.parentalRating) { - EPG[1][8][epgchan] = "
( from " + (event.parentalRating + 3) + ")"; + EPG[1][8][epgchan] = "
( from " + (event.parentalRating + 3) + " )"; } else { EPG[1][8][epgchan] = ""; } @@ -3275,7 +3275,20 @@ function onStateChanged(ev) { function ServerRecordStart() { //Instant recording on server -try { + +//Check if no recording on this channel is started the last 15 min. +// +var ii = SwitchTimer; +SwitchTimer = 0; + +var trec = "OK"; +for (var i=0; i" + pos6 + ""; - var x = (Number(recDura[currMed])/60).toFixed(0); - if (pos/60 > x) { x = (pos/60).toFixed(0);} + pos4 = pos4 + "" + pos6 + ""; + var x = (Number(recDura[currMed])/60).toFixed(0); + if (pos/60 > x) { x = (pos/60).toFixed(0);} osdmedia.innerHTML = "
  " + (pos/60).toFixed(0) + " / " + x + "  " + Left(recTitl[currMed],40) + "\n  " + pos4 + " 
"; } -- cgit v1.2.3