View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Sep 23, 2004 6:46 pm 
Offline
Joined: Sat Feb 21, 2004 2:19 pm
Posts: 8
Location: Wellington, New Zealand
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 17, 2004 3:11 am 
Offline
Joined: Sat Oct 16, 2004 4:02 am
Posts: 3
Location: New Zealand
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 18, 2004 12:04 pm 
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.


Top
  
 
 Post subject:
PostPosted: Mon Oct 18, 2004 2:32 pm 
Offline
Joined: Sat Oct 16, 2004 4:02 am
Posts: 3
Location: New Zealand
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 18, 2004 5:15 pm 
Offline
Joined: Sat Feb 21, 2004 2:19 pm
Posts: 8
Location: Wellington, New Zealand
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 18, 2004 5:30 pm 
Offline
Joined: Sat Oct 16, 2004 4:02 am
Posts: 3
Location: New Zealand
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!


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu