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 //infobox
if (ibox == NULL) if (ibox == NULL)
ibox = new CComponentsInfoBox(x, ypos2, width, info_height, false); 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 //infobox
if (ibox == NULL) if (ibox == NULL)
ibox = new CComponentsInfoBox(x, ypos2, width, info_height, false); 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]; var logo =epg_data[_index][7];
$('d_logo').update( (logo!="")?"<img class=\"channel_logos\" src=\""+logo+"\">":"" ); $('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 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>'; 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); $('d_lookup').update(imdb_link+" "+klack_link+" "+tvinfo_link);

View File

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

View File

@@ -72,44 +72,38 @@ function processReqChange()
if (document.f.planer[0].checked == true) if (document.f.planer[0].checked == true)
{ {
var xml = g_req.responseXML; var xml = g_req.responseXML;
var recProg_NodeList = xml.getElementsByTagName('recProg'); var recProg_NodeList = xml.getElementsByTagName('epg_schedule')[0].childNodes;
for(i=0;i<recProg_NodeList.length;i++) var counter = 0;
for(i = 0; i < recProg_NodeList.length; i++)
{ {
var recProg_Node = recProg_NodeList[i]; var recProg_Node = recProg_NodeList[i];
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');
var sender = getXMLNodeItemValue(recProg_Node, 'sender'); progName = decodeURI(progName);
var progName = getXMLNodeItemValue(recProg_Node, 'progName'); var Ausdruck = /(.*)-(.*)-(.*) (.*):(.*):(.*) +(.*)*$/;
var progStartDate = getXMLNodeItemValue(recProg_Node, 'progStartDate'); /*convert startdate*/
var progStartTime = getXMLNodeItemValue(recProg_Node, 'progStartTime'); Ausdruck.exec(progStartTime);
var progEndDate = getXMLNodeItemValue(recProg_Node, 'progEndDate'); var alDate = RegExp.$3+"."+RegExp.$2+"."+RegExp.$1;
var progEndTime = getXMLNodeItemValue(recProg_Node, 'progEndTime'); var alTime = RegExp.$4+":"+RegExp.$5;
/*convert enddate*/
Ausdruck.exec(progEndTime);
var stDate = RegExp.$3+"."+RegExp.$2+"."+RegExp.$1;
var stTime = RegExp.$4+":"+RegExp.$5;
progName = decodeURI(progName); timer_list_addRow(timer_body, i, alDate, alTime, stDate, stTime, sender, progName, "TVInfo");
/*convert startdate*/ if(document.f.debug.checked == true)
var Ausdruck = /(.*)-(.*)-(.*).*$/; sLog_addRow(sLog_body, "green", "- Timer "+i+": "+alDate+" "+alTime+" "+sender+" "+progName, "analyzed");
Ausdruck.exec(progStartDate); counter++;
var alDate = RegExp.$3+"."+RegExp.$2+"."+RegExp.$1; }
Ausdruck = /(.*):(.*):(.*).*$/;
Ausdruck.exec(progStartTime);
var alTime = RegExp.$1+":"+RegExp.$2;
/*convert enddate*/
Ausdruck = /(.*)-(.*)-(.*).*$/;
Ausdruck.exec(progEndDate);
var stDate = RegExp.$3+"."+RegExp.$2+"."+RegExp.$1;
Ausdruck = /(.*):(.*):(.*).*$/;
Ausdruck.exec(progEndTime);
var stTime = RegExp.$1+":"+RegExp.$2;
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");
} }
if(recProg_NodeList.length>0) if(counter > 0)
sLog_addRow(sLog_body, "green", "Analyze "+recProg_NodeList.length+" Timers", "finished"); sLog_addRow(sLog_body, "green", "Analyze "+counter+" Timers", "finished");
else else
sLog_addRow(sLog_body, "yellow", "No Timers found", "finished"); sLog_addRow(sLog_body, "yellow", "No Timers found", "finished");
} }
@@ -274,20 +268,24 @@ function do_set_timer()
if(Ergebnis) if(Ergebnis)
channel_name = RegExp.$1; 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 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 +"&stDate="+rowNode.childNodes[3].firstChild.nodeValue
+"&stTime="+rowNode.childNodes[4].firstChild.nodeValue +"&stTime="+stTime
+"&channel_name="+channel_name +"&channel_name="+channel_name
+"&rec_dir="+document.f.rec_dir.value +"&rec_dir="+document.f.rec_dir.value
+"&rs=1" +"&rs=1"
+"&update=1"; +"&update=1";
// _url = _urlt.replace(/:/gi,".");
_url = encodeURI(_urlt); _url = encodeURI(_urlt);
loadSyncURL(_url); loadSyncURL(_url);
channels++; channels++;
if(document.f.debug.checked) 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"); 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%"> <table border="0" cellspacing="0" cellpadding="4" width="100%">
<tr> <tr>
<td> <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="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" {=if-empty:{=ini-get:/var/tuxbox/config/Y-Web.conf;klack_url=}~disabled~=}/>Klack <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>
<td> <td>
<!-- <!--

View File

@@ -560,7 +560,7 @@ case "$1" in
timer_get_tvinfo) timer_get_tvinfo)
shift 1 shift 1
rm -r /tmp/tvinfo.xml 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 ] if ! [ -s /tmp/tvinfo.xml ]
then then
res="$res File empty!" res="$res File empty!"