Josip Makarevic
2014-05-12 09:52:10 UTC
Hi guys,
I'm kinda new to this so forgive me if I'm doing something wrong.
I'm using xmltv and gonix source is just out of date and I had to do
something about it.
I've found this one http://mojtv.hr/xmltv/
The thing is that it uses ASP http://mojtv.hr/xmltv/service.ashx?kanal_id=
*1*&date=*12.5.2014.*<http://mojtv.hr/xmltv/service.ashx?kanal_id=1&date=12.5.2014.>for
specific channel so I had to write my own xml file that
looks like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<tv source-data-url="http://mojtv.hr/xmltv/" source-info-name="Phazer XML
servis 4.5" source-info-url="http://mojtv.hr/xmltv/">
<channel id="1">
<display-name>HTV1</display-name>
<url>http://mojtv.hr/xmltv/service.ashx?kanal_id=1&date=
</url>
</channel>
<channel id="2">
<display-name>HTV2</display-name>
<url>http://mojtv.hr/xmltv/service.ashx?kanal_id=2&date=
</url>
</channel>
Then I had to put that xml somewhere where I can download it from and
modify the grabber (it's a copy of tv_grab_hr called tv_grab_hr_mojtv) and
here is the code:
128c128
< my $default_root_url = 'http://www.gonix.net/xmltv/channels.xml.gz';
---
< grabber_name => "tv_grab_hr",
---
< description => "Croatia",
---
< UnixDate( $date, "%Y-%m-%d" ) . "." );
---
< # All data fetched ok.
---
< my $url = $rooturl . $channel_id . "_" . UnixDate( $date, "%Y-%m-%d"
) .
< ".xml.gz";
---
a look into it and maybe find a way to make it even better. But this semi
automatic version is working well for me.
Thanks, and If someone needs some help feel free to ask.
Best regards,
J.
I'm kinda new to this so forgive me if I'm doing something wrong.
I'm using xmltv and gonix source is just out of date and I had to do
something about it.
I've found this one http://mojtv.hr/xmltv/
The thing is that it uses ASP http://mojtv.hr/xmltv/service.ashx?kanal_id=
*1*&date=*12.5.2014.*<http://mojtv.hr/xmltv/service.ashx?kanal_id=1&date=12.5.2014.>for
specific channel so I had to write my own xml file that
looks like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<tv source-data-url="http://mojtv.hr/xmltv/" source-info-name="Phazer XML
servis 4.5" source-info-url="http://mojtv.hr/xmltv/">
<channel id="1">
<display-name>HTV1</display-name>
<url>http://mojtv.hr/xmltv/service.ashx?kanal_id=1&date=
</url>
</channel>
<channel id="2">
<display-name>HTV2</display-name>
<url>http://mojtv.hr/xmltv/service.ashx?kanal_id=2&date=
</url>
</channel>
Then I had to put that xml somewhere where I can download it from and
modify the grabber (it's a copy of tv_grab_hr called tv_grab_hr_mojtv) and
here is the code:
128c128
< my $default_root_url = 'http://www.gonix.net/xmltv/channels.xml.gz';
---
my $default_root_url = 'http://www.nevermind.com/download/listing2.xml';
132c132< grabber_name => "tv_grab_hr",
---
grabber_name => "tv_grab_hr_mojtv",
138c138< description => "Croatia",
---
description => "Croatia-mojtv",
201a202,203#t "YOMG: $url";
#t "YOMG: $channel_id";
204c206#t "YOMG: $channel_id";
< UnixDate( $date, "%Y-%m-%d" ) . "." );
---
UnixDate( $date, "%d.%m.%Y" ) . "." );
218c220< # All data fetched ok.
---
# All data fetched ok.Þ1
381,382c383,386< my $url = $rooturl . $channel_id . "_" . UnixDate( $date, "%Y-%m-%d"
) .
< ".xml.gz";
---
# my $url = $rooturl . $channel_id . "_" . UnixDate( $date, "%d.%m.%Y"
) .# ".";
my $url = $rooturl . UnixDate( $date, "%d.%m.%Y" ) . "." ;
#print $url;
So what I was hoping that someone, who is better devel than I am, will takemy $url = $rooturl . UnixDate( $date, "%d.%m.%Y" ) . "." ;
#print $url;
a look into it and maybe find a way to make it even better. But this semi
automatic version is working well for me.
Thanks, and If someone needs some help feel free to ask.
Best regards,
J.