LinHES Forums
http://forum.linhes.org/

Problems with mythfilldatabase and xmltv
http://forum.linhes.org/viewtopic.php?f=11&t=2477
Page 1 of 1

Author:  nramsay [ Thu Sep 23, 2004 6:46 pm ]
Post subject:  Problems with mythfilldatabase and xmltv

As people may be aware, the XMLTV feed for New Zealand has recently died. There are now some replacements available from the XMLTV/Python based project, but they don't have all the channels.

Fortunately, someone has made some nice alternatives - but I can't seem to get them to go.

So, here is what I have done:

1. Created a new tv_grab_nz file with the following contents:
Code:
#!/bin/sh
#

lynx -source http://ontv.orcon.net.nz/listings.xml


2. chmod 755 tv_grab_nz
3. renamed old tv_grab_nz file
4. mv tv_grab_nz /usr/bin

As you can see, my new tv_grab_nz file downloads the listings from the ontv website - and sends the contents to stdout. I am fairly sure that the contents of the file match the XMLTV standard.

5. I have also removed all present the channel settings by checking all the 'delete' checkboxes in MythWeb / Settings / Channels.

6. So, I run mythfilldatabase --manual
7. And I get...

Code:
###
### Running in manual channel configuration mode.
### This will ask you questions about every channel.
###
----------------- Start of XMLTV output -----------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<tv source-info-url="http://nz.ontv.uni.cc">
<channel id="One" xmlns="xmltv">
.
.
.
        <programme start="20040924015500" channel="3">
                <title><![CDATA[World News Tonight]]></title>
                <desc><![CDATA[]]></desc>
        </programme></tv>
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Updating icons for sourceid: 1
Adjusting program database end times...
0 replacements made.


The error appears to indicate that something is wrong with the XMLTV contents.

Notes:

1. I have also tried the other suggested alternatives for XMLTV grabbers for New Zealand, but they seem to have the same problem.
2. Do you think it could be something to do with pumping the contents of the file to stdout? I think this is what XMLTV does. Maybe someone can correct me.
3. Maybe I have just wrecked my database somehow, and I should rebuild it. Is this possible?
4. Or should I just reinstall my whole system again - hopefully not.

Any help would be much appreciated.

Thanks

Nigel Ramsay

Author:  bubba_nz [ Sun Oct 17, 2004 3:11 am ]
Post subject: 

I am no expert at this stuff, but would like to see this working at some point, so I'll keep trying and hopefully some expert out there will give us some hints!!

Let me know if you have any luck, Nigel!

Duncan

Author:  mjvdvlugt [ Mon Oct 18, 2004 12:04 pm ]
Post subject: 

Quote:
<tv source-info-url="http://nz.ontv.uni.cc">
<channel id="One" xmlns="xmltv">
.
.
.
<programme start="20040924015500" channel="3">
<title><![CDATA[World News Tonight]]></title>
<desc><![CDATA[]]></desc>
</programme></tv>

As far as I know xml, the above isn't valid. The <channel> has to be terminated (</channel>) before <tv> is terminated by the </tv> tag. It could be that the parser chokes on this error.

Author:  bubba_nz [ Mon Oct 18, 2004 2:32 pm ]
Post subject: 

Has anyone tried pulling that XML file using wget and then running mythfilldatabase --file listings.xml?

I was just skimming the HOWTOs and wondered if that would work.. I might try tonight if I get a chance.

From:
http://www.mythtv.org/docs/mythtv-HOWTO-9.html --
mythfilldatabase --file is an option if there isn't an XMLTV grabber for your country, but you do have an XML formatted listings file created by some other program.


Duncan

Author:  nramsay [ Mon Oct 18, 2004 5:15 pm ]
Post subject: 

I'm currently doing that at home. I'll fill you in on the details later on tonight.

Basically, I'm running one of the tv_grab_nz scripts and dumping the output to a file, and then importing that with the manual mythfilldatabase option. I kick it off every morning around 10am with cron.

Author:  bubba_nz [ Mon Oct 18, 2004 5:30 pm ]
Post subject: 

I have read this thread also with interest today:

http://www.nerdthings.com/forum_viewtopic.php?4.158

I will have a whack at the approach suggested above tonight, but I haven't actually got Myth working properly yet, so am unsure beyond running mythfilldatabase whether I will be able to see how well it worked.

Good to know there are Wellingtonians out there doing the same thing though!

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/