maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Xmltv (https://talk.maemo.org/showthread.php?t=76376)

marmistrz 2011-09-07 14:22

Xmltv
 
Hi
Is there a good xmltv database available?
Thanks in advance

pelago 2011-09-07 14:31

Re: Xmltv
 
Do you mean like Showtime?

marmistrz 2011-09-07 14:37

Re: Xmltv
 
Yeah, just like showtime :)
I don't like the showtime's interface, so want to write my own program.
Is there a database to get the program for several (e.g. 3) days?

marxian 2011-09-07 14:39

Re: Xmltv
 
Quote:

Originally Posted by marmistrz (Post 1083560)
Yeah, just like showtime :)
I don't like the showtime's interface, so want to write my own program.
Is there a database to get the program for several (e.g. 3) days?

Showtime uses XMLTV, so why not take a look at the source code? Then you can see how it retrieves and uses the data. :)

marmistrz 2011-09-07 14:41

Re: Xmltv
 
Yeah, I noticed it.... But the look at xmltvepg.be. The file are there but there may be problems in the future. I'm looking for an alternate server...

marmistrz 2011-09-07 14:44

Re: Xmltv
 
ok. the files on the server are alright.
but I'm still looking for a mirror

msigsgaard 2011-09-11 10:09

Re: Xmltv
 
Quote:

The monthly allowed bandwidth for this website has been exceeded.
Yea, can see where youre getting at :)

It an industry, enough said however there are plenty of crawlers available - only I havent seen any BE ones. After checking there is a commercial alternative though.

Your direct approach would be to download and parse the listings directly from a service provider. Check out the XMLTV packages for *nix distributions, it is python dependant and works in most platforms - besides Maemo atm.

Personally ive been doing the same as you, making from scratch an UI for xmltv feeds - my application however relies on user to have either a service provider as the one you point out or to create the xml file for themself with the parsers available.


XMLTV grabber EU (BE language available EUR 18 / year)

The grabbers are quite CPU extensive - but should there be anyone outthere willing to port xmltv python packages, Please say so :)

marmistrz 2011-09-14 17:51

Re: Xmltv
 
Btw. I think I found the mirrors....

from here: http://www.pli-images.org/getfile.ph...&file_id=10729

I'll check 'em out.. I hope they'll be working - I'd like to keep my program free of charge ;)

<source type="gen_xmltv" channels="http://www.xmltvepg.be/rytec.channels.xml.gz">
<description>Rytec Portugal XMLTV</description>
<url>http://www.xmltvepg.be/rytecxmltvportugal.gz</url>
<url>http://www.world-of-satellite.com/rytecxmltvportugal.gz</url>
<url>http://www.xmltvepg.nl/rytecxmltvportugal.gz</url>
<url>http://www.tm800hd.co.uk/rytec/rytecxmltvportugal.gz</url>
<url>http://rytec.tman.nl/rytecxmltvportugal.gz</url>
<url>http://xmltvepg.isgreat.org/rytecxmltvportugal.gz</url>
</source>

marmistrz 2011-09-14 18:47

Re: Xmltv
 
How did you convert the xmltv data to strings? could you tell which src files do that?

msigsgaard 2011-09-26 10:32

Re: Xmltv
 
Quote:

Originally Posted by marmistrz (Post 1088418)
How did you convert the xmltv data to strings? could you tell which src files do that?

Here is the latest, best-option for embedded systems, the textreader. Previously this code was written, parsing the xmlpp::Element / xmlpp::NodeList structure - see secondary links

xmlpp::TextReader

NodeLists:

Flow of parser
foreach Channel
parse Program


All times are GMT. The time now is 16:33.

vBulletin® Version 3.8.8