[mythtv-users] Patch for tv_grab_na_dd
Harry Orenstein
ho_9 at hotmail.com
Tue Mar 23 20:32:43 EST 2004
I haven't seen any action on this front, and I
always wanted to submit a patch for Myth
(to give something back, not because I have
any issues).
Given that tv_grab_na_dd just came out and
is supposed to replace tv_grab_na, I thought
this would be an easy place to give back.
I hope the patch is in the proper format to be
applied against CVS (I downloaded the CVS
version of filldata.cpp just to be sure). I also
hope that someone who also has access to
the dev list will repost it there. ;-)
How to use:
1. Sign up for Zap2It DD (find out how at
xmltv.sf.net)
2. Get the latest XMLTV (0.5.31) and build
for tv_grab_na_dd
3. Run "tv_grab_na_dd --configure"
4. Edit the resulting config file and add a line
after the user line "password: yourpassword"
where "yourpassword" is the password you
chose for Zap2It DD.
5. Patch filldata.cpp and rebuild mythtv (there
is probably an easier way to do this, but I just
rebuilt the whole lot)
6. In mysql change the XMLTV grabber in the
videosource table from tv_grab_na to
tv_grab_na_dd
7. Copy the config file created in 4. above to
the ~/.mythtv directory to replace your
existing config file (name will vary, ends with
.xmltv) [you may want to save the original]
8. Try out your new mythfilldatabase before
you install it (save the original). A full
installation of myth is not necessary, you only
need mythfilldatabase.
9. Enjoy. Use the extra time you save getting
listings for: a new hobby, more time watching
TV, ...
-- Harry O.
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now!
http://toolbar.msn.com/go/onm00200415ave/direct/01/
-------------- next part --------------
--- filldata.cpp.orig 2004-03-23 19:45:30.000000000 -0500
+++ filldata.cpp 2004-03-23 19:49:36.000000000 -0500
@@ -1432,6 +1432,7 @@
.arg(source.name);
QString command;
QString xmltv_grabber = source.xmltvgrabber;
+ QString addl_params;
if (xmltv_grabber == "tv_grab_uk")
command.sprintf("nice %s --days 7 --config-file '%s' --output %s",
@@ -1491,13 +1492,19 @@
else
{
isNorthAmerica = true;
- command.sprintf("nice %s --days 1 --offset %d --config-file '%s' "
- "--output %s", xmltv_grabber.ascii(),
+ if (xmltv_grabber == "tv_grab_na_dd")
+ // Handle new Zap2It DD grabber
+ addl_params = "--days 1 --old_chan_id";
+ else
+ addl_params = "--days 1";
+ command.sprintf("nice %s %s --offset %d --config-file '%s' "
+ "--output %s", xmltv_grabber.ascii(),
addl_params.ascii(),
offset, configfile.ascii(), filename.ascii());
}
if (quiet &&
(xmltv_grabber == "tv_grab_na" ||
+ xmltv_grabber == "tv_grab_na_dd" ||
xmltv_grabber == "tv_grab_de" ||
xmltv_grabber == "tv_grab_fi" ||
xmltv_grabber == "tv_grab_es" ||
@@ -1674,6 +1681,7 @@
}
}
else if (xmltv_grabber == "tv_grab_na" ||
+ xmltv_grabber == "tv_grab_na_dd" ||
xmltv_grabber == "tv_grab_uk_rt" ||
xmltv_grabber == "tv_grab_sn")
{
More information about the mythtv-users
mailing list