[mythtv] Patch: tv_grab_uk_rt integration
Ed Wildgoose
edward.wildgoose at frmhedge.com
Sun Oct 19 17:12:03 EDT 2003
I'm not sure what has changed, but using "&" is now working ok in
the ui.xml file, so here is an updated patch to add in all the category
info required for tv_grab_uk_rt integration. If someone changed
something, then thanks!
As per my last patch:
>Where
>mythfilldatabase code is looking for category info of the form "movie", it
>appears to only do this at the moment if this is the *second* category tag
>for this program. I'm not quite sure why this is and it is possibly
>leveraging something specific to the tv_grab_na grabber perhaps?
>
>Anyway, I have taken out the "else" so that it runs for all category tags.
>Intuitively this seems unlikely to cause a problem...? If this isn't a
>problem then I can rework that so it does one thing for "_na" and something
>different for everyone else (Please feel free to set me straight on the
>purpose of this bit of code!)
>
Thanks
Ed W
-------------- next part --------------
Index: programs/mythfilldatabase/filldata.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfilldatabase/filldata.cpp,v
retrieving revision 1.66
diff -u -r1.66 filldata.cpp
--- programs/mythfilldatabase/filldata.cpp 17 Oct 2003 07:19:41 -0000 1.66
+++ programs/mythfilldatabase/filldata.cpp 17 Oct 2003 21:32:55 -0000
@@ -421,8 +421,8 @@
{
pginfo->category = cat;
}
- else if (cat == "movie" || cat == "series" || cat == "sports" ||
- cat == "tvshow")
+ if (cat == "movie" || cat == "series" || cat == "sports" ||
+ cat == "tvshow" || cat == "Film")
/* Hack until we have the new XMLTV DTD with category
"system"s.
I can't use a new tag, because I'd then
Index: themes/blue/ui.xml
===================================================================
RCS file: /var/lib/mythcvs/mythtv/themes/blue/ui.xml,v
retrieving revision 1.34
diff -u -r1.34 ui.xml
--- themes/blue/ui.xml 10 Oct 2003 21:29:14 -0000 1.34
+++ themes/blue/ui.xml 19 Oct 2003 15:03:49 -0000
@@ -158,6 +158,30 @@
<catcolor category="arts/culture" color="goldenrod"></catcolor>
<catcolor category="movie" color="Blue"></catcolor>
+ <!-- Categories introduced by tv_grab_uk_rt -->
+ <catcolor category="Animation" color="MediumSlateBlue"></catcolor>
+ <catcolor category="Business" color="DarkOrange3"></catcolor>
+ <catcolor category="Children's Show" color="MediumSlateBlue"></catcolor>
+ <catcolor category="Consumer" color="goldenrod"></catcolor>
+ <catcolor category="Cookery" color="#aa00aa"></catcolor>
+ <catcolor category="Current Affairs" color="DarkOrange3"></catcolor>
+ <catcolor category="Drama Series" color="rosybrown3"></catcolor>
+ <catcolor category="Entertainment" color="DarkOrchid"></catcolor>
+ <catcolor category="Environment" color="#33ff99"></catcolor>
+ <catcolor category="Film" color="Blue"></catcolor>
+ <catcolor category="Game Show" color="orchid"></catcolor>
+ <catcolor category="Gardening" color="Red"></catcolor>
+ <catcolor category="Interests" color="Red"></catcolor>
+ <catcolor category="Music & Arts" color="goldenrod"></catcolor>
+ <catcolor category="News & Current Affairs" color="DarkOrange3"></catcolor>
+ <catcolor category="Religious" color="goldenrod"></catcolor>
+ <catcolor category="Sitcoms" color="DarkOrchid"></catcolor>
+ <catcolor category="Soaps" color="DarkOrchid"></catcolor>
+ <catcolor category="Sport" color="DarkCyan"></catcolor>
+ <catcolor category="Talk Show" color="MediumTurquoise"></catcolor>
+ <catcolor category="Transport" color="#33ff99"></catcolor>
+ <catcolor category="Travel" color="#aa00aa"></catcolor>
+
<recordstatus type="SingleRecord" image="gg-rs-single.png"></recordstatus>
<recordstatus type="TimeslotRecord" image="gg-rs-timeslot.png"></recordstatus>
<recordstatus type="ChannelRecord" image="gg-rs-channel.png"></recordstatus>
@@ -365,6 +389,30 @@
<catcolor category="arts/culture" color="goldenrod"></catcolor>
<catcolor category="movie" color="Blue"></catcolor>
+ <!-- Categories introduced by tv_grab_uk_rt -->
+ <catcolor category="Animation" color="MediumSlateBlue"></catcolor>
+ <catcolor category="Business" color="DarkOrange3"></catcolor>
+ <catcolor category="Children's Show" color="MediumSlateBlue"></catcolor>
+ <catcolor category="Consumer" color="goldenrod"></catcolor>
+ <catcolor category="Cookery" color="#aa00aa"></catcolor>
+ <catcolor category="Current Affairs" color="DarkOrange3"></catcolor>
+ <catcolor category="Drama Series" color="rosybrown3"></catcolor>
+ <catcolor category="Entertainment" color="DarkOrchid"></catcolor>
+ <catcolor category="Environment" color="#33ff99"></catcolor>
+ <catcolor category="Film" color="Blue"></catcolor>
+ <catcolor category="Game Show" color="orchid"></catcolor>
+ <catcolor category="Gardening" color="Red"></catcolor>
+ <catcolor category="Interests" color="Red"></catcolor>
+ <catcolor category="Music & Arts" color="goldenrod"></catcolor>
+ <catcolor category="News & Current Affairs" color="DarkOrange3"></catcolor>
+ <catcolor category="Religious" color="goldenrod"></catcolor>
+ <catcolor category="Sitcoms" color="DarkOrchid"></catcolor>
+ <catcolor category="Soaps" color="DarkOrchid"></catcolor>
+ <catcolor category="Sport" color="DarkCyan"></catcolor>
+ <catcolor category="Talk Show" color="MediumTurquoise"></catcolor>
+ <catcolor category="Transport" color="#33ff99"></catcolor>
+ <catcolor category="Travel" color="#aa00aa"></catcolor>
+
<recordstatus type="SingleRecord" image="gg-rs-single.png"></recordstatus>
<recordstatus type="TimeslotRecord" image="gg-rs-timeslot.png"></recordstatus>
<recordstatus type="ChannelRecord" image="gg-rs-channel.png"></recordstatus>
More information about the mythtv-dev
mailing list