[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mythtv-dev
Subject:    Re: [mythtv] [PATCH] for tv_grab_au
From:       Amandeep S Kaile <askaile () d1 ! com ! au>
Date:       2003-08-28 0:16:34
Message-ID: 3F4D49E2.9030409 () d1 ! com ! au
[Download RAW message or body]

Thanks for your reply. I had done that a long ago but in different way 
as i had written my own grabber for australia on same pattern as north 
america. It does everything from setup program ie. provider selection, 
region selection. But only problem was that i donot want to use setup 
program separately. All i want to achive this functionality withen 
mythfrontend->setup->tvsettings->programguide. I add new page to program 
guide. Where i will do all functionality ie. Providers as checkboxes in 
listview, regions as radiobuttons in listview and user should have 
choice of selecting channels he is interested in getting information 
about. Channels will also appear as checkboxs in list view. I am very 
near to achiving all this. Hopefully we will make changes available to 
everybody soon if all goes well.

Amandeep

Mark Edwards wrote:

> First cut patch to support TV listings Grabber for Australia.
>  
> Cheers and Beers to :
>  
> http://www.onlinetractorparts.com.au/rohbags/xmltvau/ 
>  
> for the grabber...
> ...finally ;-)
>  
> Mark.
>  
>  
>  
>  
>
>------------------------------------------------------------------------
>
>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
>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>mythtv-dev mailing list
>>mythtv-dev@mythtv.org
>>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>>    
>>

[Attachment #3 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Thanks for your reply. I had done that a long ago but in different way
as i had written my own grabber for australia on same pattern as north
america. It does everything from setup program ie. provider selection,
region selection. But only problem was that i donot want to use setup
program separately. All i want to achive this functionality withen
mythfrontend-&gt;setup-&gt;tvsettings-&gt;programguide. I add new page
to program guide. Where i will do all functionality ie. Providers as
checkboxes in listview, regions as radiobuttons in listview and user
should have choice of selecting channels he is interested in getting
information about. Channels will also appear as checkboxs in list view.
I am very near to achiving all this. Hopefully we will make changes
available to everybody soon if all goes well.<br>
<br>
Amandeep<br>
<br>
Mark Edwards wrote:<br>
<blockquote type="cite"
 cite="mid00bd01c36c90$8caa3040$0d0117ac@enterprise.veritas.com">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2800.1106" name="GENERATOR">
  <style></style>
  <div><font face="Arial" size="2">First cut patch to support TV
listings Grabber for Australia. </font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">Cheers and Beers to :</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2"><a
 href="http://www.onlinetractorparts.com.au/rohbags/xmltvau/">http://www.onlinetractorparts.com.au/rohbags/xmltvau/</a>&nbsp;</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">for the grabber... </font></div>
  <div><font face="Arial" size="2">...finally ;-)</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">Mark.</font></div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <pre wrap="">
<hr width="90%" size="4">
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-&gt;addSelection("United Kingdom (alternative)","tv_grab_uk_rt");

+        addTarget("tv_grab_au", new XMLTV_generic_config(parent, "tv_grab_au"));
+        grabber-&gt;addSelection("Australia", "tv_grab_au");
+
         addTarget("tv_grab_nz", new XMLTV_generic_config(parent, "tv_grab_nz"));
         grabber-&gt;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 @@
         &lt;catcolor category="TIEMPO" color="#33ff99"&gt;&lt;/catcolor&gt;
         &lt;catcolor category="SHOW" color="sienna"&gt;&lt;/catcolor&gt;

+        &lt;!-- Categories introduced by tv_grab_au --&gt;
+        &lt;catcolor category="Childrens" \
color="MediumSlateBlue"&gt;&lt;/catcolor&gt; +        &lt;catcolor category="Movie" \
color="Blue"&gt;&lt;/catcolor&gt; +        &lt;catcolor category="Live" \
color="DarkOrange3"&gt;&lt;/catcolor&gt; +
         &lt;!-- categories used by the NextView EPG service --&gt;
         &lt;!-- (available in some european countries) --&gt;
         &lt;catcolor category="news" color="DarkOrange3"&gt;&lt;/catcolor</pre>
  <blockquote type="cite">
    <pre wrap="">
<hr width="90%" size="4">
_______________________________________________
mythtv-dev mailing list
<a class="moz-txt-link-abbreviated" \
href="mailto:mythtv-dev@mythtv.org">mythtv-dev@mythtv.org</a> <a \
class="moz-txt-link-freetext" \
href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev</a>
  </pre>
  </blockquote>
</blockquote>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic