Hi!
I've compiled the 0.5.42 and it failed then I compiled
the nightly snapshot and it fails too.
tv_grab_huro --configure is okay, but:
outlaw@linux:~> /usr/bin/tv_grab_huro --output
/home/outlaw/tv.xml --days 5
using config filename /home/outlaw/.xmltv/tv_grab_huro.conf
getting list of channels:
##################################################
getting listings: Can't call method "as_text" on an
undefined value at /usr/bin/tv_grab_huro line 797.
/usr/bin/tv_grab_huro:
#789 sub get_title( @ ) {
#790 my ($tree) = @_;
#791
#792 my @txt_elem; my $i = 0;
#793 my @txt_cont =
$tree->look_down("_tag"=>"td", "align"=>"left",
#794 "valign"=>"top");
#795 foreach my $txt (@txt_cont) {
#796 my @fonts =
$txt->find_by_tag_name("_tag"=>"font", "size"=>"2");
#797 my $text = $fonts[0]->as_text;
#798 for ($text) { s/^\s+//; s/\s+$// }
#799 t "found " . $i++ . " title in program
table: '$text'"
#800 unless $text eq '';
#801 push @txt_elem, $text unless $text eq '';
#802 }
#803
#804 return @txt_elem;
#805 }
Thanks!
Logged In: NO
The programme title is no longer surrounded by <font>, it
has been replaced by <span>.
So,
my @fonts = $txt->find_by_tag_name
("_tag"=>"font", "size"=>"2");
should be replaced with:
my @fonts = $txt->find_by_tag_name("_tag"=>"span");
See sample below:
<tr>
<td align="right" valign="top" bgcolor="#F3DBA9"><span
class="btxt">04:55</span></td>
<td align="left" valign="top" width="100%"
bgcolor="#F3DBA9"><span class="btxt">Euro-
Dispecer</span></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#F3DBA9"><span
class="btxt">05:00</span></td>
<td align="left" valign="top" width="100%"
bgcolor="#F3DBA9"><span class="btxt">Jocurile Olimpice de
iarnã - Torino, 2006</span><span class="ltxt"> (reluare)
</span><span class="ltxt"><BR>Rezumat</span></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#F3DBA9"><span
class="btxt">05:30</span></td>
<td align="left" valign="top" width="100%"
bgcolor="#F3DBA9"><span class="btxt">Universul
credinþei</span><span class="ltxt"> (reluare) </span></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#F3DBA9"><span
class="btxt">07:00</span></td>
<td align="left" valign="top" width="100%"
bgcolor="#F3DBA9"><span class="btxt">Jurnalul
TVR</span><span class="ltxt"><BR>* Sport *
Meteo</span></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#F3DBA9"><span
class="btxt">08:00</span></td>
<td align="left" valign="top" width="100%"
bgcolor="#F3DBA9"><span class="btxt">Euro-
Dispecer</span></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#F3DBA9"><span
class="btxt">08:05</span></td>
<td align="left" valign="top" width="100%"
bgcolor="#F3DBA9"><img src="/tv/kep/potty_9.gif"
border="0" width="13" height="8"><span
class="btxt"><a class="navs_b"
href="/pls/fi/films.film_page?
i_perf_id=1267248&i_where=1&i_where_tv=1"
onClick="window.open('/pls/fi/films.film_page?
i_perf_id=1267248&i_where=1&i_where_tv=1','_blank','scrollb
ars=yes,location=yes,menubar=yes,resizable=yes,toolbar=yes,
width=860,height=580');return false;">Isabel, în cãutarea
iubirii</a></span><span class="ltxt"> (Venezuela, 2004, s)
</span><span class="mtxt"> (AP) </span></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#F3DBA9"><span
class="btxt">09:55</span></td>
<td align="left" valign="top" width="100%"
bgcolor="#F3DBA9"><span class="btxt">Euro-
Dispecer</span></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#F3DBA9"><span
class="ltxt">10:00</span></td>
<td align="left" valign="top" width="100%"
bgcolor="#F3DBA9"><span
class="lbbtxt">Teleshopping</span></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#F3DBA9"><span
class="btxt">10:30</span></td>
<td align="left" valign="top" width="100%"
bgcolor="#F3DBA9"><span class="btxt">Jocurile Olimpice de
Iarnã - Torino, 2006</span><span
class="ltxt"><BR>Rezumat</span></td>
</tr>
Logged In: YES
user_id=1295126
Thank you for this fast and working answer :)
Logged In: YES
user_id=1434299
Hi all,
a have reworked most of the code, there were another
bugs in it (port.hu/port.ro made more changes on the format).
I have checked in right now the v. 1.19 of tv_grab_huro.in,
it should grab without any error.
Let me no, if it do not works ...
thx, Balazs
Logged In: YES
user_id=1182343
i dnloaded lastnight alpharelease, but send catmap.hu not
find. what is it.
Thx
ps
port.hu dnt work
Logged In: YES
user_id=1434299
catmap.hu/ro files will be used to guess the category
of a given program. the new code will provide this info
in English and in Hungraian/Romenian languages
the latest tv_grab_huro (r1.9) works only good if you use
it with the whole XMLTV build from the CVS's latest.
But if somebody will use it with the last official XMLTV
release (0.5.42), he should make the following steps:
- download catmap.hu/ro,jobmap and tv_grab_huro.in (
from huro.in, the r1.9, because we will make other
changes later to use the new features of latest
XMLTV source tree)
http://cvs.sourceforge.net/viewcvs.py/xmltv/xmltv/grab/huro/
- edit huro.in file:
line 124: comment out the 2 lines:
#use XMLTV::Capabilities...
#use XMLTV::Description...
line 1177:
change 'undef'to the string found in original grab_huro,
e.g:
my $SHARE_DIR = "/usr/share/xmltv";
- copy catmap.hu/ro,jobmap to the share dir.
- cp tv_grab_huro tv_grab_huro.orig
- mv tv_grab_huro.in tv_grab_huro
Logged In: YES
user_id=1182343
thx.Koszi.
i have only one little prob :)
have can NE1 create aplha-release windows executable for
me. the last is 2006.02.08.
Logged In: YES
user_id=1434299
i thought, i will try to build it, so i asked for howto on
xmltv-devel maillist. here is the answer...
(conclusion => sorry, but i won't complile for win*)
> > The first step is to get native ActivePerl working on
> > widnows. As I recently posted, this just got a lot
> > easier with the CammelPack.
> > The EXE is generated with a "nmake xmltv.exe".
> > The catch is you need ActiveState's Perl DEV kit,
> > which is *NOT* free. (I have a purchased
> > copy so I can generate some EXEs for some clients)
> >
> > Robert
>
> Hi all,
>
> i would like to build a windows xmltv binary from the CVS,
> i do not found any documentation how to make it...
>
> Is there any url/file containing this howto?
>
> thx, Balazs
Logged In: YES
user_id=1182343
thx. Koszi.
I have a try, and ...
ps
ha nem jon ossze zargathatlak emilen?
Logged In: YES
user_id=313365
closing on behalf of molnar