[mythtv-users] tv_grab_au

Kevin Hayes wondecla at tpg.com.au
Sun Jul 16 05:38:03 UTC 2006


On Sun, 16 Jul 2006 11:30:39 +1000
Brian May <bam at snoopy.apana.org.au> wrote:

> >>>>> "Phill" == Phill Edwards <philledwards at gmail.com> writes:
> 
>     Phill> Only source which is legit is tvguide.org.au
> 
> I tried this grabber today (Debian/etch):
> 
> mythtv:/usr/share/xmltv/tv_grab_au$ ./tv_grab_au_reg -v -o /tmp/tvguide.xml 
> Outputting to file:  /tmp/tvguide.xml
> Traceback (most recent call last):
>   File "./tv_grab_au_reg", line 571, in ?
>     main()
>   File "./tv_grab_au_reg", line 563, in main
>     grab()
>   File "./tv_grab_au_reg", line 436, in grab
>     grabTVGuideDayChannel(day, channel)
>   File "./tv_grab_au_reg", line 323, in grabTVGuideDayChannel
>     outputDayChannel(f, channel)
>   File "./tv_grab_au_reg", line 308, in outputDayChannel
>     for (event,node) in events:
>   File "/usr/lib/python2.3/xml/dom/pulldom.py", line 232, in next
>     rc = self.getEvent()
>   File "/usr/lib/python2.3/xml/dom/pulldom.py", line 265, in getEvent
>     self.parser.feed(buf)
>   File "/usr/lib/python2.3/xml/sax/expatreader.py", line 211, in feed
>     self._err_handler.fatalError(exc)
>   File "/usr/lib/python2.3/xml/sax/handler.py", line 38, in fatalError
>     raise exception
> xml.sax._exceptions.SAXParseException: <unknown>:1:0: syntax error
> 
> Any ideas what I am doing wrong? The config file looks OK to me (after
> I removed the invalid comment - it contained "--" in one spot which is
> illegal in an XML comment):
> 
> --- cut ---
> mythtv:/usr/share/xmltv/tv_grab_au$ xmllint /home/mythtv/.xmltv/tv_grab_au_reg.xml
> <?xml version="1.0"?>
> <config>
> 
>   <login provider="tvguide" user="$censored$" password="$censored$"/>
> 
>     <channel display="ABC" tvguide="ABC-Vic" local="abcvic.free.au"/>
>     <channel display="ABC2" tvguide="ABC2" local="abc2.abc.gov.au"/>
>     <channel display="Nine" tvguide="Nine-Mel" local="channelninemelbourne.free.au"/>
>     <channel display="SBS" tvguide="SBS-Vic" local="sbsmelbourne.free.au"/>
>     <channel display="SBS News" tvguide="SBS-NEWS" local="news.sbs.com.au"/>
>     <channel display="Seven" tvguide="Seven-Mel" local="channelsevenmelbourne.free.au"/>
>     <channel display="Ten" tvguide="Ten-Vic" local="networktenmelbourne.free.au"/>
> 
> </config>
> 
> --- cut --- 
> -- 
> Brian May <bam at snoopy.apana.org.au>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> 
> 

Had similar problem here, with the following error message ...


[mythtv at mythbe1 ~]$ mythfilldatabase
2006-07-16 15:21:28.132 Using runtime prefix = /usr
2006-07-16 15:21:28.383 New DB connection, total: 1
2006-07-16 15:21:28.434 Connected to database 'mythconverg' at host: localhost
2006-07-16 15:21:28.478 mythfilldatabase: Listings Download Started
2006-07-16 15:21:28.499 New DB connection, total: 2
2006-07-16 15:21:28.501 Connected to database 'mythconverg' at host: localhost
2006-07-16 15:21:28.540 Updating source #1 (antenna) with grabber tv_grab_au
2006-07-16 15:21:28.571 ----------------- Start of XMLTV output -----------------
2006-07-16 15:21:28.578 New DB connection, total: 3
2006-07-16 15:21:28.579 Connected to database 'mythconverg' at host: localhost


Error reading config file:  /home/mythtv/.mythtv/antenna.xmltv


Traceback (most recent call last):
  File "/usr/bin/tv_grab_au", line 571, in ?
    main()
  File "/usr/bin/tv_grab_au", line 549, in main
    load_config(config_file)
  File "/usr/bin/tv_grab_au", line 445, in load_config
    for (event,node) in events:
  File "/usr/lib/python2.4/site-packages/_xmlplus/dom/pulldom.py", line 232, in next
    rc = self.getEvent()
  File "/usr/lib/python2.4/site-packages/_xmlplus/dom/pulldom.py", line 265, in getEvent
    self.parser.feed(buf)
  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line 220, in feed
    self._err_handler.fatalError(exc)
  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/handler.py", line 38, in fatalError
    raise exception
xml.sax._exceptions.SAXParseException: <unknown>:1:1: not well-formed (invalid token)
2006-07-16 15:21:29.912 ------------------ End of XMLTV output ------------------


after changing the line in the config file with the invalid comment it worked fine for me.

-- 
Kevin Hayes



More information about the mythtv-users mailing list