[mythtv] [PATCH] for tv_grab_au

Mark Edwards mark at edwards.homelinux.net
Wed Aug 27 18:38:37 EDT 2003


Skipped content of type multipart/alternative-------------- next part --------------
Index: libs/libmythtv/videosource.h
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/videosource.h,v
retrieving revision 1.44
diff -u -r1.44 videosource.h
--- libs/libmythtv/videosource.h        25 Aug 2003 18:28:54 -0000      1.44
+++ libs/libmythtv/videosource.h        27 Aug 2003 07:25:59 -0000
@@ -178,6 +178,9 @@
         addTarget("tv_grab_uk_rt", new XMLTV_generic_config(parent, "tv_grab_uk_rt"));
         grabber->addSelection("United Kingdom (alternative)","tv_grab_uk_rt");

+        addTarget("tv_grab_au", new XMLTV_generic_config(parent, "tv_grab_au"));
+        grabber->addSelection("Australia", "tv_grab_au");
+
         addTarget("tv_grab_nz", new XMLTV_generic_config(parent, "tv_grab_nz"));
         grabber->addSelection("New Zealand", "tv_grab_nz");

Index: programs/mythfilldatabase/filldata.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfilldatabase/filldata.cpp,v
retrieving revision 1.62
diff -u -r1.62 filldata.cpp
--- programs/mythfilldatabase/filldata.cpp      18 Aug 2003 21:28:22 -0000      1.62
+++ programs/mythfilldatabase/filldata.cpp      27 Aug 2003 07:26:04 -0000
@@ -1286,6 +1286,10 @@
         command.sprintf("nice %s --days 7 --config-file '%s' --output %s",
                         xmltv_grabber.ascii(), configfile.ascii(),
                         filename.ascii());
+    else if (xmltv_grabber == "tv_grab_au")
+        command.sprintf("nice %s --days 7 --config-file '%s' --output %s",
+                        xmltv_grabber.ascii(), configfile.ascii(),
+                        filename.ascii());
     else if (xmltv_grabber == "tv_grab_nz")
         command.sprintf("nice %s -n 1 -f %d -o '%s'",
                         xmltv_grabber.ascii(), offset,
@@ -1382,7 +1386,7 @@
         QString xmltv_grabber = (*it).xmltvgrabber;
         if (xmltv_grabber == "tv_grab_uk" || xmltv_grabber == "tv_grab_de" ||
             xmltv_grabber == "tv_grab_fi" || xmltv_grabber == "tv_grab_es" ||
-            xmltv_grabber == "tv_grab_nl")
+            xmltv_grabber == "tv_grab_nl" || xmltv_grabber == "tv_grab_au" )
         {
             // tv_grab_uk|de doesn't support the --offset option, so just grab a
             // week.
@@ -1434,8 +1438,7 @@
                                          query);
             }
         }
-        else if (xmltv_grabber == "tv_grab_na" ||
-                 xmltv_grabber == "tv_grab_aus")
+        else if (xmltv_grabber == "tv_grab_na" )
         {
             if (!grabData(*it, 1))
                 ++failures;
Index: themes/blue/ui.xml
===================================================================
RCS file: /var/lib/mythcvs/mythtv/themes/blue/ui.xml,v
retrieving revision 1.24
diff -u -r1.24 ui.xml
--- themes/blue/ui.xml  18 Aug 2003 21:28:22 -0000      1.24
+++ themes/blue/ui.xml  27 Aug 2003 07:26:12 -0000
@@ -137,6 +137,11 @@
         <catcolor category="TIEMPO" color="#33ff99"></catcolor>
         <catcolor category="SHOW" color="sienna"></catcolor>

+        <!-- Categories introduced by tv_grab_au -->
+        <catcolor category="Childrens" color="MediumSlateBlue"></catcolor>
+        <catcolor category="Movie" color="Blue"></catcolor>
+        <catcolor category="Live" color="DarkOrange3"></catcolor>
+
         <!-- categories used by the NextView EPG service -->
         <!-- (available in some european countries) -->
         <catcolor category="news" color="DarkOrange3"></catcolor>


More information about the mythtv-dev mailing list