[mythtv] [PATCH] for tv_grab_au
Amandeep S Kaile
askaile at d1.com.au
Thu Aug 28 11:16:34 EDT 2003
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 at mythtv.org
>>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20030828/d853096a/attachment.htm
More information about the mythtv-dev
mailing list