[mythtv-commits] Ticket #2414: Use category names in non-case-sensitvie manner

MythTV mythtv at cvs.mythtv.org
Mon Sep 18 15:27:27 UTC 2006


#2414: Use category names in non-case-sensitvie manner
---------------------------------------+------------------------------------
 Reporter:  Cougar <cougar at random.ee>  |       Owner:  ijr    
     Type:  enhancement                |      Status:  new    
 Priority:  minor                      |   Milestone:  unknown
Component:  mythtv                     |     Version:  head   
 Severity:  medium                     |  
---------------------------------------+------------------------------------
 Different EPG grabbers use different name for the same category. Often the
 difference is only in caps. One example: "Game Show", "Game show" and
 "GAME SHOW". Last one is not in categories.xml yet but indroduced by
 tv_grab_ee (don't know what is the reason but all category names are
 always in caps). To keep categories.xml under reasonable size and to use
 the same color for the same category, I propose to use non-case-sensitvie
 names internally.

 Here is patch that converts all category names from categories.xml to
 lowercase and later uses lowercase form of category from guide data when
 drawing backgroung for listing. I think it works with all charsets. At
 least UTF-8 characters with punctation was ok.

 I'm not 100% sure I changed it in right places but it works. After using
 this patch it is also possible to clean up a categories.xml file a little
 bit.

 To speed up it a little bit it is not possible to use lower case in
 categories.xml file and not convert these on fly. I'd like to not touch
 EPG data to show users category names exactly the way they was in EPG
 data.

 Any feedback is welcome.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/2414>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list