[mythtv] Question about xmltv and mythtv

Jean-Yves Avenard jyavenard at gmail.com
Wed Mar 26 17:20:41 UTC 2008


Hi!


On Wed, Mar 26, 2008 at 9:39 PM, Robin Gilks <g8ecj at gilks.org> wrote:
>  > http://xmltv.org/wiki/howtowriteagrabber.html
>  > http://xmltv.org/wiki/xmltvcapabilities.html
>  >
>  > The guide assumes you are using perl, but there is no reason the grabber
>  > can't
>  > be in python it just involves more work because you need to write python
>  > versions of the XMLTV modules.
>
>  Talk to Hads here in New Zealand who has written a python grabber that we
>  all use to download an xmltv file (or get it from your own web server if
>  locally generated).


Thank you all for the pointer and recommendations. I have now
implemented all that is required.
However I now get the following error:
2008-03-27 04:07:02.031 Updating source #2 (iptv) with grabber tv_grab_au_tpg
2008-03-27 04:07:02.031 Found 1 channels for source 2 which use grabber
2008-03-27 04:07:02.094 Grabber has capabilities: baseline
manualconfig preferredmethod
2008-03-27 04:07:02.159 Grabber prefers method: allatonce
2008-03-27 04:07:02.159 New DB connection, total: 3
2008-03-27 04:07:02.160 Connected to database 'mythconverg' at host:
192.168.10.11
2008-03-27 04:07:02.223 Error in 1:1: unexpected end of file
2008-03-27 04:07:02.223 Updating icons for sourceid: 2
2008-03-27 04:07:02.224 New DB connection, total: 4
2008-03-27 04:07:02.224 Connected to database 'mythconverg' at host:
192.168.10.11
2008-03-27 04:07:02.225 No programs found in data.
2008-03-27 04:07:02.225 Data fetching complete.
2008-03-27 04:07:02.225 Adjusting program database end times.
2008-03-27 04:07:02.274     0 replacements made
2008-03-27 04:07:02.274 Marking generic episodes.
2008-03-27 04:07:02.310     Found 0
2008-03-27 04:07:02.310 Marking repeats.
2008-03-27 04:07:02.346     Found 0
2008-03-27 04:07:02.346 Unmarking new episode rebroadcast repeats.
2008-03-27 04:07:02.348     Found 0
2008-03-27 04:07:02.438 Marking episode first showings.
2008-03-27 04:07:03.454     Found 2950
2008-03-27 04:07:03.454 Marking episode last showings.
2008-03-27 04:07:04.469     Found 2950
2008-03-27 04:07:04.470

I don't understand why it would find an error in 1:1
Here is an extract of what running my xmltv grabber returns without arguments:
<?xml version="1.0" ?>
<tv generator-info-name="JY Avenard TPG's IPTV xmltv generator"
source-info-name="TPG's IPTV from various web
 sites">
  <channel id="tpg.tv5">
    <display-name lang="fr">
      TV5
    </display-name>
  </channel>
  <programme channel="tpg.tv5" start="20080327041300 +1100"
stop="20080327042700 +1100">
    <title>
      MAISONS DU SUD
    </title>
    <sub-title>
      Une série documentaire qui nous fait découvrir les plus
somptueuses demeures de Tunisie.
    </sub-title>
    <category>
      documentaire
    </category>
  </programme>

the python xml module I am using insert carriage return all the time,
so rather than having:
    <title>MAISONS DU SUD</title> like what most grabber I tested do, I output
    <title>
      MAISONS DU SUD
    </title>

Could this be a problem? xml-wise it is still perfectly okay, not sure
how mythtv would handle it though.

Thanks again for your help, very much appreciated.
Regards
Jean-Yves


More information about the mythtv-dev mailing list