Hi all,
The attached patch adds the ability to select the Belgian tv grabber
(both French and Dutch) in myhtv. These grabbers will hopefully be
added to a future version of knoppmyth, so they need to be selectable
in mythtv.
Please let me know if anything is wrong with this patch, and if
possible, please apply to CVS.
Kind regards,
Roel
Index: mythtv/libs/libmythtv/videosource.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/videosource.cpp,v
retrieving revision 1.76
diff -u -r1.76 videosource.cpp
--- mythtv/libs/libmythtv/videosource.cpp 13 Apr 2005 22:58:08 -0000 1.76
+++ mythtv/libs/libmythtv/videosource.cpp 27 Apr 2005 14:19:43 -0000
@@ -477,7 +477,8 @@
grabber == "tv_grab_fi" || grabber == "tv_grab_es" ||
grabber == "tv_grab_nl" || grabber == "tv_grab_jp" ||
grabber == "tv_grab_no" || grabber == "tv_grab_pt" ||
- grabber == "tv_grab_ee")
+ grabber == "tv_grab_ee" || grabber == "tv_grab_be_tvb" ||
+ grabber == "tv_grab_be_tlm")
{
cerr << "You _MUST_ run 'mythfilldatabase --manual the first time, "
<< "instead\n";
@@ -551,6 +552,12 @@
addTarget("tv_grab_ee", new XMLTV_generic_config(parent, "tv_grab_ee"));
grabber->addSelection("Estonia", "tv_grab_ee");
+
+ addTarget("tv_grab_be_tvb", new XMLTV_generic_config(parent, "tv_grab_be_tvb"));
+ grabber->addSelection("Belgium (Dutch)", "tv_grab_be_tvb");
+
+ addTarget("tv_grab_be_tlm", new XMLTV_generic_config(parent, "tv_grab_be_tlm"));
+ grabber->addSelection("Belgium (French)", "tv_grab_be_tlm");
}
VideoSource::VideoSource()
Index: mythtv/programs/mythfilldatabase/filldata.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfilldatabase/filldata.cpp,v
retrieving revision 1.172
diff -u -r1.172 filldata.cpp
--- mythtv/programs/mythfilldatabase/filldata.cpp 26 Apr 2005 22:07:43 -0000 1.172
+++ mythtv/programs/mythfilldatabase/filldata.cpp 27 Apr 2005 14:19:45 -0000
@@ -2773,7 +2773,9 @@
xmltv_grabber == "tv_grab_se_swedb" ||
xmltv_grabber == "tv_grab_no" ||
xmltv_grabber == "tv_grab_ee" ||
- xmltv_grabber == "tv_grab_de_tvtoday")
+ xmltv_grabber == "tv_grab_de_tvtoday" ||
+ xmltv_grabber == "tv_grab_be_tvb" ||
+ xmltv_grabber == "tv_grab_be_tlm")
{
if (xmltv_grabber == "tv_grab_no")
listing_wrap_offset = 6 * 3600;
@@ -2816,6 +2818,10 @@
maxday = 14;
else if (xmltv_grabber == "tv_grab_de_tvtoday")
maxday = 7;
+ else if (xmltv_grabber == "tv_grab_be_tvb")
+ maxday = 5;
+ else if (xmltv_grabber == "tv_grab_be_tlm")
+ maxday = 5;
for (int i = 0; i < maxday; i++)
{
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev