[mythtv-users] Danish xmltv + MythTV working for anyone?

Jens Axboe mythtv-users at kernel.dk
Sat Oct 25 20:41:59 EDT 2003


On Sat, Oct 25 2003, Martin Moeller wrote:
> I see that Jens have posted a patch to integrate tv_grab_dk into setup,
> which is great. Hope something like that gets applied before long.

Here's the short version (previous had other unfinished junk, sorry).
Martin, it's added with supporting offset but using fixed 7 day
intervals. It works for me, I'm assuming you are fine with that since
you didn't complain :-). So given that, Isaac would it be possible to
include this patch?

diff -ur mythtv-0.12.vanilla/libs/libmythtv/videosource.h mythtv-0.12/libs/libmythtv/videosource.h
--- mythtv-0.12.vanilla/libs/libmythtv/videosource.h	2003-10-19 01:40:36.000000000 +0200
+++ mythtv-0.12/libs/libmythtv/videosource.h	2003-10-21 11:38:38.000000000 +0200
@@ -192,6 +192,9 @@
 
         addTarget("tv_grab_nl", new XMLTV_generic_config(parent, "tv_grab_nl"));
         grabber->addSelection("Holland", "tv_grab_nl");
+
+        addTarget("tv_grab_dk", new XMLTV_generic_config(parent, "tv_grab_dk"));
+        grabber->addSelection("Denmark", "tv_grab_dk");
     };
 };
 
diff -ur mythtv-0.12.vanilla/programs/mythfilldatabase/filldata.cpp mythtv-0.12/programs/mythfilldatabase/filldata.cpp
--- mythtv-0.12.vanilla/programs/mythfilldatabase/filldata.cpp	2003-10-17 09:19:41.000000000 +0200
+++ mythtv-0.12/programs/mythfilldatabase/filldata.cpp	2003-10-21 12:20:07.000000000 +0200
@@ -1341,6 +1341,11 @@
         command.sprintf("nice %s --days 14 --config-file '%s' --output %s",
                         xmltv_grabber.ascii(), configfile.ascii(),
                         filename.ascii());
+    else if (xmltv_grabber == "tv_grab_dk")
+        // Use fixed interval of 7 days for Danish grabber
+        command.sprintf("nice %s --days 7 --config-file '%s' --output %s",
+                        xmltv_grabber.ascii(), configfile.ascii(),
+                        filename.ascii());
     else
     {
         isNorthAmerica = true;
@@ -1356,6 +1361,7 @@
          xmltv_grabber == "tv_grab_es" ||
          xmltv_grabber == "tv_grab_nz" ||
          xmltv_grabber == "tv_grab_sn" ||
+         xmltv_grabber == "tv_grab_dk" ||
          xmltv_grabber == "tv_grab_uk" ||
          xmltv_grabber == "tv_grab_uk_rt" ||
          xmltv_grabber == "tv_grab_nl" ||
@@ -1427,7 +1433,11 @@
             if (!grabData(*it, 0))
                 ++failures;
         }
-        else if (xmltv_grabber == "tv_grab_nz")
+	else if (xmltv_grabber == "tv_grab_dk") {
+	    if (!grabData(*it, 0))
+		++failures;
+	}
+	else if (xmltv_grabber == "tv_grab_nz")
         {
             // tv_grab_nz only supports a 7-day "grab".
             grabData(*it, 1);


-- 
Jens Axboe



More information about the mythtv-users mailing list