diff options
author | M. Voerman <rekordc@gmail.com> | 2014-06-03 10:40:11 +0200 |
---|---|---|
committer | M. Voerman <rekordc@gmail.com> | 2014-06-03 10:40:11 +0200 |
commit | 0838476480cda26a054484d4567329890ae1b988 (patch) | |
tree | 686d1a5c2eebbcd3e73c3536b504b25a45a9e585 /index.html | |
parent | 640539ad6dc7a1e9a50399eb54d944a607b99294 (diff) | |
download | vdr-vipclient-0838476480cda26a054484d4567329890ae1b988.tar.gz vdr-vipclient-0838476480cda26a054484d4567329890ae1b988.tar.bz2 |
Support for RecCmds.conf
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 68 |
1 files changed, 60 insertions, 8 deletions
@@ -3456,13 +3456,60 @@ if (DelisOK) { break; case KEY_1: if (getRecOK == 1 && (recGroup[currMed] == 0 || subgroup == 1)) { - // Only do reccmds if it isn't a subdir marker - reccmds(1); - // my reccmds.conf has on position 1 a move script so I add move file icon to medialist entry - recList[currMed] = "\uE005" + recList[currMed].substring(1); - showMediaList(); + // Only do reccmds if it isn't a subdir marker + reccmds(1); + } + break; + case KEY_2: + if (getRecOK == 1 && (recGroup[currMed] == 0 || subgroup == 1)) { + // Only do reccmds if it isn't a subdir marker + reccmds(2); + } + break; + case KEY_3: + if (getRecOK == 1 && (recGroup[currMed] == 0 || subgroup == 1)) { + // Only do reccmds if it isn't a subdir marker + reccmds(3); + } + break; + case KEY_4: + if (getRecOK == 1 && (recGroup[currMed] == 0 || subgroup == 1)) { + // Only do reccmds if it isn't a subdir marker + reccmds(4); + } + break; + case KEY_5: + if (getRecOK == 1 && (recGroup[currMed] == 0 || subgroup == 1)) { + // Only do reccmds if it isn't a subdir marker + reccmds(5); + } + break; + case KEY_6: + if (getRecOK == 1 && (recGroup[currMed] == 0 || subgroup == 1)) { + // Only do reccmds if it isn't a subdir marker + reccmds(6); + } + break; + case KEY_7: + if (getRecOK == 1 && (recGroup[currMed] == 0 || subgroup == 1)) { + // Only do reccmds if it isn't a subdir marker + reccmds(7); } break; + case KEY_8: + if (getRecOK == 1 && (recGroup[currMed] == 0 || subgroup == 1)) { + // Only do reccmds if it isn't a subdir marker + reccmds(8); + } + break; + case KEY_9: + if (getRecOK == 1 && (recGroup[currMed] == 0 || subgroup == 1)) { + // Only do reccmds if it isn't a subdir marker + reccmds(9); + } + break; + + default: break; @@ -3881,9 +3928,14 @@ try { function reccmds(option) { try { - var xmlhttp = new XMLHttpRequest(); - xmlhttp.open("POST", server_ip + recServ + "/execreccmd?cmd=" + option + "&guid=" + recGUID[currMed], false); - xmlhttp.send(); + option = Number(option); + if (RecCmds[option] > -1 ) { + var xmlhttp = new XMLHttpRequest(); + xmlhttp.open("POST", server_ip + recServ + "/execreccmd?cmd=" + RecCmds[option] + "&guid=" + recGUID[currMed], false); + xmlhttp.send(); + recList[currMed] = RecCmdsIcon[option] + recList[currMed].substring(1); + showMediaList(); + } } catch(e) { alert("Execute reccmds problem: " + e); } |