From 4bf1a1ba90917a49e4ca15cccdea92de30e79201 Mon Sep 17 00:00:00 2001 From: "M. Voerman" Date: Tue, 28 Jan 2014 18:44:31 +0100 Subject: Added some switches --- History | 8 +-- index.html | 161 +++++++++++++++++++++++++++++++++++++++++++----------------- settings.js | 7 ++- 3 files changed, 124 insertions(+), 52 deletions(-) diff --git a/History b/History index 85a17c9..f7aeea3 100644 --- a/History +++ b/History @@ -2,9 +2,9 @@ Tested on Motorola Vip : 1960, 1910, 1903, 1963. VDR 1.7.29 / 2.1.1 -0.24 vip.testing3 used for selecting getmarks from 0 = restfulapi, 1 = smartwebTV (not all users have the newest smartwebTV) +0.24 vip.testing3 used for selecting getmarks from 0 = restfulapi, 1 = SmartTVWeb (not all users have the newest SmartTVWeb) Channels update. - + Selectable gettimer source. (de)activate/del/add timers only with SmartTVWeb 0.23 Infobox for connection Error, not only ERRR on display but also the Infobox @@ -23,7 +23,7 @@ VDR 1.7.29 / 2.1.1 Sort the Recordingslist so no double maps are shown Volume steps are 1, if volume < 5 in EPG/ Guide view you can switch groups with << and >> (Live Update only if 19x3 with pip enabled image) - SmartwebTV getmarks added (no more restfulapi getmarks) + SmartTVWeb getmarks added (no more restfulapi getmarks) 0.22 Updated EPG filter for 42E, canal sat (tid 1088), canal+ (tid 1060), CDS (veronica, iConcerts, Animax) @@ -33,7 +33,7 @@ VDR 1.7.29 / 2.1.1 Fix: 'epg now' (it wasn't always the right info on some UK channels.) Added some channels for 42E to group 3 Updated channels.conf - SmartwebTV timer handling added (No more restfulapi needed for timers) + SmartTVWeb timer handling added (No more restfulapi needed for timers) Info about audio/video in Infobox when playing Recording Date/Time info during play Update dutch tv/radio channels on 19E diff --git a/index.html b/index.html index 737ed7f..77f7df0 100644 --- a/index.html +++ b/index.html @@ -2712,8 +2712,10 @@ function LoadTimers() { function LoadTimersServer() { -//Get timers from SmartTVweb try { + + if (testing4==1) { + //Get timers from SmartTVweb xmlhttp=new XMLHttpRequest(); xmlhttp.open("GET",(server_ip + recServ + "/timers.xml?" + new Date().getTime()),false); xmlhttp.send(); @@ -2750,7 +2752,40 @@ try { timers[i] = timers[i] + timersDays[i] + "\uE003" + timersStrt[i] + "\uE003" + timersStop[i] + "\uE003" + Left(timersName[i],8) + "\uE003" + Left(timersFile[i],15) + "\n" ; timerOK = 1; } + } else { + xmlhttp=new XMLHttpRequest(); + xmlhttp.open("GET",(RestFulAPI + "/timers.xml"),false); // ?" + new Date().getTime()),false); + xmlhttp.send(); + xmlDoc=xmlhttp.responseXML; + var x=xmlDoc.getElementsByTagName("timer"); + maxTimers = x.length; + for (var i=0;i