Merge branch 'uncool/dvbsi++' commit d0ea4ad62e

This commit is contained in:
Stefan Seyfried
2013-01-13 22:46:24 +01:00
7 changed files with 44 additions and 45 deletions

View File

@@ -221,7 +221,7 @@ void CBEChannelWidget::paintItem2DetailsLine (int pos, int /*ch_index*/)
//infobox
if (ibox == NULL)
ibox = new CComponentsInfoBox(x, ypos2, width, info_height, false);
ibox->paint(false);
ibox->paint(false,true);
}
}

View File

@@ -256,7 +256,7 @@ void CBEChannelSelectWidget::paintItem2DetailsLine (int pos, int /*ch_index*/)
//infobox
if (ibox == NULL)
ibox = new CComponentsInfoBox(x, ypos2, width, info_height, false);
ibox->paint(false);
ibox->paint(false,true);
}
}

View File

@@ -64,7 +64,7 @@ function show_epg_item(_index){
var logo =epg_data[_index][7];
$('d_logo').update( (logo!="")?"<img class=\"channel_logos\" src=\""+logo+"\">":"" );
var imdb_link = '<a target="_blank" class="exlink" href="http://german.imdb.com/find?s=all&q='+(epg_data[_index][0]).gsub(" ","+")+'">IMDb</a>';
var klack_link = '<a target="_blank" class="exlink" href="http://www.klack.de/index.php?page=Programfinder2.php&TITLE='+(epg_data[_index][0]).gsub(" ","+")+'">klack.de</a>';
var klack_link = '<a target="_blank" class="exlink" href="http://www.klack.de/programmsuche.html?search=1&title='+(epg_data[_index][0]).gsub(" ","+")+'">klack.de</a>';
var tvinfo_link = '<a target="_blank" class="exlink" href="http://www.tvinfo.de/exe.php3?quicksearch=1&volltext='+(epg_data[_index][0]).gsub(" ","+")+'&tpk=&showall=&genretipp=&target=list.inc">tvinfo.de</a>';
$('d_lookup').update(imdb_link+" "+klack_link+" "+tvinfo_link);

View File

@@ -5,8 +5,8 @@
//<![CDATA[
function do_submit() {
show_waitbox(true);
var t = document.f.klack_url.value.replace(/&/gi,";");
document.f.klack_url.value = t;
// var t = document.f.klack_url.value.replace(/&/gi,";");
// document.f.klack_url.value = t;
document.f.submit();
}
//]]>
@@ -31,6 +31,7 @@ function do_submit() {
<td>{=L:set.timer.password=}</td>
<td><input type="password" name="tvinfo_password" size="15" value="{=ini-get:/var/tuxbox/config/Y-Web.conf;tvinfo_password=}"/></td>
</tr>
<!--
<tr>
<td colspan="2" class="y_form_header">klack.de (V2)</td>
</tr>
@@ -43,6 +44,7 @@ function do_submit() {
<td>{=L:set.timer.klack.security_code=}</td>
<td><input type="password" name="klack_securitycode" size="15" value="{=ini-get:/var/tuxbox/config/Y-Web.conf;klack_securitycode=}" title="{=L:set.timer.klack.security_code_desc=}"/></td>
</tr>
// -->
<tr>
<td colspan="2" class="y_form_header">{=L:set.timer.channel_name_replacelist=}</td>
</tr>

View File

@@ -72,44 +72,38 @@ function processReqChange()
if (document.f.planer[0].checked == true)
{
var xml = g_req.responseXML;
var recProg_NodeList = xml.getElementsByTagName('recProg');
var recProg_NodeList = xml.getElementsByTagName('epg_schedule')[0].childNodes;
var counter = 0;
for(i = 0; i < recProg_NodeList.length; i++)
{
var recProg_Node = recProg_NodeList[i];
var sender = getXMLNodeItemValue(recProg_Node, 'sender');
var progName = getXMLNodeItemValue(recProg_Node, 'progName');
var progStartDate = getXMLNodeItemValue(recProg_Node, 'progStartDate');
var progStartTime = getXMLNodeItemValue(recProg_Node, 'progStartTime');
var progEndDate = getXMLNodeItemValue(recProg_Node, 'progEndDate');
var progEndTime = getXMLNodeItemValue(recProg_Node, 'progEndTime');
if ((recProg_Node.nodeName == 'epg_schedule_entry') && (recProg_Node.getAttribute('eventtype') == 'rec'))
{
var sender = recProg_Node.getAttribute('channel');
var progStartTime = recProg_Node.getAttribute('starttime');
var progEndTime = recProg_Node.getAttribute('endtime');
var progName = getXMLNodeItemValue(recProg_Node, 'title');
progName = decodeURI(progName);
var Ausdruck = /(.*)-(.*)-(.*) (.*):(.*):(.*) +(.*)*$/;
/*convert startdate*/
var Ausdruck = /(.*)-(.*)-(.*).*$/;
Ausdruck.exec(progStartDate);
var alDate = RegExp.$3+"."+RegExp.$2+"."+RegExp.$1;
Ausdruck = /(.*):(.*):(.*).*$/;
Ausdruck.exec(progStartTime);
var alTime = RegExp.$1+":"+RegExp.$2;
var alDate = RegExp.$3+"."+RegExp.$2+"."+RegExp.$1;
var alTime = RegExp.$4+":"+RegExp.$5;
/*convert enddate*/
Ausdruck = /(.*)-(.*)-(.*).*$/;
Ausdruck.exec(progEndDate);
var stDate = RegExp.$3+"."+RegExp.$2+"."+RegExp.$1;
Ausdruck = /(.*):(.*):(.*).*$/;
Ausdruck.exec(progEndTime);
var stTime = RegExp.$1+":"+RegExp.$2;
var stDate = RegExp.$3+"."+RegExp.$2+"."+RegExp.$1;
var stTime = RegExp.$4+":"+RegExp.$5;
timer_list_addRow(timer_body, i, alDate, alTime, stDate, stTime, sender, progName, "TVInfo");
if(document.f.debug.checked == true)
sLog_addRow(sLog_body, "green", "- Timer "+i+": "+alDate+" "+alTime+" "+sender+" "+progName, "analyzed");
counter++;
}
if(recProg_NodeList.length>0)
sLog_addRow(sLog_body, "green", "Analyze "+recProg_NodeList.length+" Timers", "finished");
}
if(counter > 0)
sLog_addRow(sLog_body, "green", "Analyze "+counter+" Timers", "finished");
else
sLog_addRow(sLog_body, "yellow", "No Timers found", "finished");
}
@@ -274,20 +268,24 @@ function do_set_timer()
if(Ergebnis)
channel_name = RegExp.$1;
}
var tmpTime = rowNode.childNodes[2].firstChild.nodeValue;
var alTime = tmpTime.replace(/:/gi,".");
tmpTime = rowNode.childNodes[4].firstChild.nodeValue;
var stTime = tmpTime.replace(/:/gi,".");
var _urlt = "/control/timer?action=new&alDate="+rowNode.childNodes[1].firstChild.nodeValue
+"&alTime="+rowNode.childNodes[2].firstChild.nodeValue
+"&alTime="+alTime
+"&stDate="+rowNode.childNodes[3].firstChild.nodeValue
+"&stTime="+rowNode.childNodes[4].firstChild.nodeValue
+"&stTime="+stTime
+"&channel_name="+channel_name
+"&rec_dir="+document.f.rec_dir.value
+"&rs=1"
+"&update=1";
// _url = _urlt.replace(/:/gi,".");
_url = encodeURI(_urlt);
loadSyncURL(_url);
channels++;
if(document.f.debug.checked)
/*sLog_addRow(sLog_body, "green", "Sync Timer to box: "+channel_name+" "+rowNode.childNodes[6].firstChild.nodeValue, "added");*/
sLog_addRow(sLog_body, "green", "Sync Timer to box url: "+_url, "added");
}
}

View File

@@ -14,9 +14,8 @@
<table border="0" cellspacing="0" cellpadding="4" width="100%">
<tr>
<td>
<input type="radio" name="planer" value="TVInfo" {=if-empty:{=ini-get:/var/tuxbox/config/Y-Web.conf;tvinfo_username=}~disabled~=}/>TVInfo<br/>
<input type="radio" name="planer" value="Klack" {=if-empty:{=ini-get:/var/tuxbox/config/Y-Web.conf;klack_url=}~disabled~=}/>Klack
<input type="radio" name="planer" value="TVInfo" checked="checked" {=if-empty:{=ini-get:/var/tuxbox/config/Y-Web.conf;tvinfo_username=}~disabled~=}/>TVInfo<br/>
<input type="radio" name="planer" value="Klack" disabled="disabled" style="display: none;" {=if-empty:{=ini-get:/var/tuxbox/config/Y-Web.conf;klack_url=}~disabled~=}/><!--Klack// -->&nbsp;
</td>
<td>
<!--

View File

@@ -560,7 +560,7 @@ case "$1" in
timer_get_tvinfo)
shift 1
rm -r /tmp/tvinfo.xml
res=`wget -O /tmp/tvinfo.xml "http://www.tvinfo.de/share/vidac/rec_info.php?username=$1&password=$2" 2>&1`
res=$(wget -O /tmp/tvinfo.xml "http://www.tvinfo.de/share/openepg/schedule.php?username=$1&password=$2" 2>&1)
if ! [ -s /tmp/tvinfo.xml ]
then
res="$res File empty!"