summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorM. Voerman <rekordc@gmail.com>2013-08-11 10:13:50 +0200
committerM. Voerman <rekordc@gmail.com>2013-08-11 10:13:50 +0200
commitfb034a1f96a41d19b8f59adb97de16eea0ca4f03 (patch)
tree08b8a8952d391ceb2ae025e16ad7996a2781fbb6 /index.html
parentd5f8a9e1d9a35cf23a9efd523f995d1f6d849130 (diff)
downloadvdr-vipclient-fb034a1f96a41d19b8f59adb97de16eea0ca4f03.tar.gz
vdr-vipclient-fb034a1f96a41d19b8f59adb97de16eea0ca4f03.tar.bz2
protect recording based on channelgroup
Diffstat (limited to 'index.html')
-rw-r--r--index.html34
1 files changed, 28 insertions, 6 deletions
diff --git a/index.html b/index.html
index 159ef1d..a20ab94 100644
--- a/index.html
+++ b/index.html
@@ -1552,6 +1552,12 @@ function StreamInfo(si) {
is.setObject("cfg.locale.ui","fra",is.STORAGE_VOLATILE);
}
+ // MTV transponder
+ if(SI[0]=="S19.2E" && SI[2]=="1066") {
+ is.setObject("cfg.locale.ui","eng",is.STORAGE_VOLATILE);
+ }
+
+
if(SI[0]=="S19.2E" && SI[2]=="1078" && SI[3]=="28679") {
//Nick NL
is.setObject("cfg.locale.ui","dut",is.STORAGE_VOLATILE);
@@ -1982,10 +1988,14 @@ function onKeyMenu(keyCode) {
if (menu == 1) {
- ShowProtectedChannels = 1 - ShowProtectedChannels;
- if (ShowProtectedChannels == 1 && protChn[ChanGroup] == 1) { ChanGroup = 0; currChan = defChan[ChanGroup]; play(currChan); }
- isSetupMenu = 0;
- mainmenu.style.opacity = 0;
+ ShowProtectedChannels = 1 - ShowProtectedChannels;
+ if (ProtectID) { clearTimeout(ProtectID); }
+ if (ShowProtectedChannels == 0 && ProtectTimeOut !== 0 ) {
+ ProtectID = setTimeout("ShowProtectedChannels = 1; if (protChn[ChanGroup] == 1) {ChanGroup = 0; currChan = defChan[ChanGroup]; play(currChan); }",ProtectTimeOut);
+ }
+ if (ShowProtectedChannels == 1 && protChn[ChanGroup] == 1) { ChanGroup = 0; currChan = defChan[ChanGroup]; play(currChan); }
+ isSetupMenu = 0;
+ mainmenu.style.opacity = 0;
}
break;
case KEY_8:
@@ -2984,9 +2994,11 @@ try {
recDummy = recGUID[i].split(".");
recDummy = recDummy[(recDummy.length-2)].split("-");
recChan[i] = recDummy[0] + "\uE003-\uE003" + channelsnames[(recDummy[0])];
+ recProt[i] = protChn[Number(Left((recDummy[0] / 1000),1))];
} else {
//Media directory
recChan[i] = "Media File";
+ recProt[i] = 0; // No protection for Media Files.
}
}
@@ -3105,6 +3117,7 @@ try {
xmlhttp.send();
recList[currMed] = "";
recGroup[currMed] = -1;
+ recProt[currMed] = 0;
} catch(e) {
alert("Delete Recordings problem: " + e);
}
@@ -3148,9 +3161,9 @@ function MakeRecList() {
} else {
recList[i] = "\uE003" + result + "\uE003" + recList[i];
}
-
x = recTitl[i][recMap];
xx = recTitl[i][recMap + 1];
+ if ((recProt[i] == 1) && (ShowProtectedChannels == 1)) { recList[i] = "";}
}
}
@@ -3178,6 +3191,9 @@ function MakeRecList2() {
recList[i] = "\uE003\uE003" + result + "\uE003" + recTitl[i];
}
}
+
+ if ((recProt[i] == 1) && (ShowProtectedChannels == 1)) { recList[i] = "";}
+
x = recTitl[i][0];
}
}
@@ -3200,6 +3216,8 @@ function MakeRecList3(GroupID) {
}
MaxInGroup = MaxInGroup + 1;
+ if ((recProt[i] == 1) && (ShowProtectedChannels == 1)) { recList[i] = "";}
+
} else {
recList[i] = "" ;
}
@@ -3218,7 +3236,11 @@ function AddInfo(info) {
d=addzero(d);
h=addzero(h);
m=addzero(m);
- result = "\uE003" + d + '-' + month + '-' + year + ' ' + h + ':' + m;
+ if ( year==1970 ) {
+ result = "\uE003";
+ } else {
+ result = "\uE003" + d + '-' + month + '-' + year + ' ' + h + ':' + m;
+ }
//
}