summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Voerman <rekordc@gmail.com>2014-05-18 20:56:51 +0200
committerM. Voerman <rekordc@gmail.com>2014-05-18 20:56:51 +0200
commit5a173c80b16e6129ca36d6f48bb23084dab7ea5b (patch)
treef5887179962393368d6abafc1190765707b57cb1
parent7da446cdb8c8ef9bc9973a07808cd01e61a810dc (diff)
downloadvdr-vipclient-5a173c80b16e6129ca36d6f48bb23084dab7ea5b.tar.gz
vdr-vipclient-5a173c80b16e6129ca36d6f48bb23084dab7ea5b.tar.bz2
More for favorites list
-rw-r--r--History7
-rw-r--r--index.html68
-rwxr-xr-xlang_dut.js2
-rwxr-xr-xlang_eng.js4
-rw-r--r--settings.js4
5 files changed, 62 insertions, 23 deletions
diff --git a/History b/History
index 56c43c6..4cb0530 100644
--- a/History
+++ b/History
@@ -7,14 +7,15 @@ VDR 1.7.29 / 2.1.1
Selectable gettimer source. (de)activate/del/add timers only with SmartTVWeb
Update EPG Filter
EPGList/ Recordinglist bug fixed (hopefully)
- New key from old KPN remote added for swap prev / current channel
+ New key from old KPN remote added, key hh for swap prev / current channel
Add script to generate channels.js (svdrpsend.pl needed)
Erased channelsX.js
Subs prio can be set eq TV5 sends multiple subs. default "DUT, ENG"
Subtitle language can dynamic be chosen from settings menu (<menu> <1> <red>) if there is no subtitle present it resets to default.
Added Group 10 (channels >10000) for favorite
- New key from old KPN remote added key @ switch to favorite list
- New key from old KPN remote added key >@ add to favorite list
+ New option, Menu - 0 switch to favorites list (same as @ key)
+ New key from old KPN remote added, key @ (paperclip) switch to favorites list
+ New key from old KPN remote added, key >@ add to favorites list
split the info menu into box info (menu yellow) & info about settings (menu 1 - yellow)
Updated channels script, now adds timestamp to list which is shown in info menu.
diff --git a/index.html b/index.html
index 9ef7e0c..77d4578 100644
--- a/index.html
+++ b/index.html
@@ -239,7 +239,7 @@ function GetSettings() {
}
}
}
- for (var i = minChan[Fav_group]; i < (maxChan[Fav_group]+1); i++) {
+ 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] = "";
}
}
@@ -1065,11 +1065,28 @@ function onKeyDown(event) {
break;
case KEY_C:// @ key on old long kpn 1710/1760 remote
if(isFullscreen && Fav_max_channel !== 0 && ChanGroup !== Fav_group) {
- GotoFav(defChan[Fav_group]);
+ timerID = (defChan[Fav_group] - Fav_base - 1); if (timerID < 0) { timerID = 0;}
+ maxTimers = Fav_max_channel;
+ GotoFav(defChan[Fav_group]);
} else if(isFullscreen && ChanGroup == Fav_group) {
- //We're in favorite channels mode ;)
- //Show a list of them -> menu edit favorites
+ timerID = (currChan - Fav_base - 1);
}
+ if(isFullscreen && Fav_max_channel !== 0) {
+ if(count) {
+ count = 0;
+ osdnr.style.opacity = 0;
+ showDisplay(Right(currChan.toString(),4), false, 100, 0 );
+ Change = 0;
+ }
+ osdepginfo.style.opacity = 0;
+ osdepginfonext.style.opacity = 0;
+ isSetupMenu = 1;
+ mainmenu.style.opacity = 0.8;
+ menu = 10;
+ InitMenu(menu);
+ }
+
+
break;
case KEY_D:// >@ key on old long kpn 1710/1760 remote
if (protChn[ChanGroup] !== 1 && ChanGroup !== Fav_group) {
@@ -1230,7 +1247,7 @@ function onKeyDown(event) {
function GotoFav(ChanID) {
count = 0; Change = 0;
- prevChan = "";
+ prevChan = ""; Fav_key1 = "";
defChan[ChanGroup] = currChan;
ChanGroup = Fav_group;
currChan = ChanID;
@@ -2197,14 +2214,16 @@ function onKeyMenu(keyCode) {
case "BrowserBack":
if ((menu == 5 || menu == 7) && osdepginfo.style.opacity == 1) {
osdepginfo.style.opacity = 0;
- break;
- }
- if (menu !== MainMenu) {
+ } else if (menu == 10 || menu == MainMenu) {
+ isSetupMenu = 0;
+ mainmenu.style.opacity = 0;
+ osdepginfo.style.opacity = 0;
+ } else if (menu !== MainMenu) {
if (menu == 3 ) { isFullscreen = 0; play(channels[currChan]); isFullscreen = 1;MPDListener = 0;}
menu = MainMenu;
InitMenu(menu);
- break;
- }
+ }
+ break;
case "Menu":
if (menu == 3 ) { play(channels[currChan]);MPDListener = 0;}
isSetupMenu = 0;
@@ -2251,7 +2270,7 @@ function onKeyMenu(keyCode) {
//UnloadMediaSettings();
}
if (menu == 10) {
- GotoFav((timerID + Fav_base));
+ GotoFav((timerID + Fav_base + 1));
isSetupMenu = 0;
mainmenu.style.opacity = 0;
osdepginfo.style.opacity = 0;
@@ -2381,6 +2400,10 @@ function onKeyMenu(keyCode) {
// Show info SearchTimers
osdepginfo.innerHTML = SearchTimer[timerID] ;
osdepginfo.style.opacity = 1 - osdepginfo.style.opacity;
+ } else if (menu == 10) {
+ if (protChn[ChanGroup] !== 1 && ChanGroup !== Fav_group) {
+ AddtoFav();
+ }
}
break;
case "MediaRewind":
@@ -2609,7 +2632,7 @@ function onKeyMenu(keyCode) {
InitMenu(menu);
} else if (menu == 0) {
timerID = 0; maxTimers = Fav_max_channel;
- menu = 10;
+ menu = 10; if (ChanGroup !== Fav_group) { Fav_key1 = Lang[86]; }
InitMenu(menu);
}
@@ -2623,6 +2646,19 @@ function onKeyMenu(keyCode) {
case "VolumeDown":
VolumeDown();
break;
+ case KEY_A:// |> key on old long kpn 1710/1760 remote
+ break;
+ case KEY_B:// hh key on old long kpn 1710/1760 remote
+ break;
+ case KEY_C:// @ key on old long kpn 1710/1760 remote
+ if (menu == 10 ) {
+ isSetupMenu = 0;
+ mainmenu.style.opacity = 0;
+ osdepginfo.style.opacity = 0;
+ }
+ break;
+ case KEY_D:// >@ key on old long kpn 1710/1760 remote
+ break;
default:
break;
@@ -2648,7 +2684,7 @@ osdepginfo.style.opacity = 0;
if(menu == 0) { // Main Menu
MainMenu = 0;
- mainmenu.innerHTML = "<h1><center style='font-size:" + fsMenuMain + ";" + color_main_head + ";'>" + Lang[9] + "\n ( " + Version + " )</center></h1><pre style='" + color_main_font + ";font-size:" + fsMenu + ";'> 1 -" + Lang[10] + "\n 2 -" + Lang[7] + "\n 3 -" + Lang[11] + "\n 4 -" + Lang[12] + "\n 5 -" + Lang[13] + "\n 6 -" + Lang[14] + "\n 7 -" + Lang[15] + "\n 8 -" + Lang[16] + "\n 9 -" + Lang[17] + "\n\n\n <font style='color:red;'>\u25CF<font style='" + color_main_font + ";'> -" + Lang[19] + "<font style='color:green;'>\u25CF<font style='" + color_main_font + ";'> -" + Lang[19] + "<font style='color:yellow;'>\u25CF<font style='" + color_main_font + ";'> -" + Lang[35] + " <font style='color:blue;'>\u25CF<font style='" + color_main_font + ";'> -" + Lang[18] + "</pre>";
+ mainmenu.innerHTML = "<h1><center style='font-size:" + fsMenuMain + ";" + color_main_head + ";'>" + Lang[9] + "\n ( " + Version + " )</center></h1><pre style='" + color_main_font + ";font-size:" + fsMenu + ";'> 1 -" + Lang[10] + "\n 2 -" + Lang[7] + "\n 3 -" + Lang[11] + "\n 4 -" + Lang[12] + "\n 5 -" + Lang[13] + "\n 6 -" + Lang[14] + "\n 7 -" + Lang[15] + "\n 8 -" + Lang[16] + "\n 9 -" + Lang[17] + "\n 0 - " + Lang[83] + "\n\n <font style='color:red;'>\u25CF<font style='" + color_main_font + ";'> -" + Lang[19] + "<font style='color:green;'>\u25CF<font style='" + color_main_font + ";'> -" + Lang[19] + "<font style='color:yellow;'>\u25CF<font style='" + color_main_font + ";'> -" + Lang[35] + " <font style='color:blue;'>\u25CF<font style='" + color_main_font + ";'> -" + Lang[18] + "</pre>";
}
if(menu == 6) { // Main Menu when watching recording
@@ -2683,7 +2719,6 @@ if(menu == 1) { // settings menu
}
if(menu == 2) { // Timers menu
-// booking = "<center>" + Lang[32] + "</center>";
booking = "";
var x = timerID - 1;
var y = toi.schedulerService.getBookingIds("*", 0, 0);
@@ -2814,17 +2849,16 @@ if(menu == 10) { // Favorite edit Menu
htmltext += "<font style='background:" + color_bg + ";-webkit-border-radius:25px;" + color_main_font + ";font-size:" + fsMenu + ";'>";
var x = timerID;
for (var i=0;i<10;i++) {
-// if (maxTimers !== 0) { do { x += 1; } while (!channelsnames[(x + Fav_base)] && (x < maxTimers)) }
if (maxTimers !== 0) { x += 1;}
if (maxTimers >= x && x !== 0) { htmltext += " \u0003\u0003 " + x + " \u0003\u0003 " + channelsnames[(x + Fav_base)] + " \u0003\u0003\u0003 \n"; } else { htmltext += "\n"; }
if (i == 0) { htmltext += "</font>"; }
}
- htmltext += "\n <font style='color:red;'>\u25CF<font style='" + color_main_font + ";'> -" + Lang[48];
+ htmltext += "\n <font style='color:red;'>\u25CF<font style='" + color_main_font + ";'> -" + Lang[87];
htmltext += "<font style='color:green;'>\u25CF<font style='" + color_main_font + ";'> -"
if (timerID == 0) { htmltext += Lang[19] } else { htmltext += Lang[84] } //no move up
htmltext += "<font style='color:yellow;'>\u25CF<font style='" + color_main_font + ";'> -"
if (timerID == (maxTimers - 1) || x == 0) { htmltext += Lang[19] } else { htmltext += Lang[85] } //no move down
- htmltext += "<font style='color:blue;'>\u25CF<font style='" + color_main_font + ";'> -" + Lang[19] + "</pre>";
+ htmltext += "<font style='color:blue;'>\u25CF<font style='" + color_main_font + ";'> -" + Fav_key1 + "</pre>";
mainmenu.innerHTML = htmltext;
}
diff --git a/lang_dut.js b/lang_dut.js
index 3dc1207..ab17d2a 100755
--- a/lang_dut.js
+++ b/lang_dut.js
@@ -113,6 +113,8 @@ Lang[82] = "Groep Selektie";
Lang[83] = "Favorieten Lijst";
Lang[84] = " schuif op ";
Lang[85] = " schuif neer ";
+Lang[86] = " Toevoegen ";
+Lang[87] = " Wissen ";
Lang[90] = "Deze zender zit niet in je pakket";
diff --git a/lang_eng.js b/lang_eng.js
index ba37666..5fde397 100755
--- a/lang_eng.js
+++ b/lang_eng.js
@@ -109,8 +109,10 @@ Lang[70] = "Pause";
Lang[80] = "Show ChannelsGroup";
Lang[81] = "Group ";
Lang[82] = "Group Selection";
-Lang[83] = "Favorite List";
+Lang[83] = "Favorites List";
Lang[84] = " Move UP ";
Lang[85] = " Move Down ";
+Lang[86] = " ADD ";
+Lang[87] = " Delete ";
Lang[90] = "No subscription for this channel";
diff --git a/settings.js b/settings.js
index 6bb4d00..ea7c486 100644
--- a/settings.js
+++ b/settings.js
@@ -2,7 +2,7 @@
// Default settings
//
-var Version = "0.24.14";
+var Version = "0.24.16";
server_ip_array = new Array("http://192.168.1.15","http://192.168.3.15","http://192.168.3.100","http://192.168.178.19","http://192.168.1.21");
@@ -337,4 +337,4 @@ defChan[Fav_group] = Fav_base + 1;
minChan[Fav_group] = Fav_base + 1;
//
var Chan_Ver = "Not set";
-
+var Fav_key1;