[mythtv] [PATCH] Internal DataDirect grabber functionality REVISEDVERSION USE THIS ONE!

Bruce Markey bjm at lvcm.com
Sun Apr 18 21:33:36 EDT 2004


David Engel wrote:
> On Sun, Apr 18, 2004 at 07:50:45PM -0400, Isaac Richards wrote:
> 
>>Yup, and I wasn't sure if I was going to get something into CVS this
>>soon, but I spent a good 5 or 6 hours last night fixing everything
>>up so it could go in.
> 
> 
> Neither was I.  I've been greatly anticipating this change but hadn't
> even had a chance to look at David's patch yet.
> 
> Do you have any recommended way to change over?  I assume everything
> should work normally until I add a DD videosource.

Well, first compile and install to make sure that everything
is hunky dory with your current grabber. If it's all happy,
do a mysqldump just to be safe =). Run setup and create a new
videosource for the DD grabber. Go to Input connections to
change the associations from the old source to the new sources.
Run mythfilldatabase and you should be good to go. However,
there will be annoying things like the sourceid will be incremented
so your chanids will all be new and the channel table will still
have all the old entries for the old sourceid.

If things get hozed. "drop database mythconverg;", "create database
mythconverg;", and restore from backup.

I had been using sourceid 1 and didn't want a bogus incremented
new sourceid and chanids so I did:

delete from program;
drop table videosource;
drop table channel;

then cut'n'pasted the CREATEs for videosource and channel from
the backup file. Then I went into setup, created the DD source
then verified that the Input Connections matched.

Once I did this, everything was fine. The EPG displayed the
correct channels, my record rules matched, and the schedule
filled correctly.

If things get hozed. "drop database mythconverg;", "create database
mythconverg;", and restore from backup.

--  bjm


More information about the mythtv-dev mailing list