[mythtv-commits] Ticket #12503: Mythfilldatabase translates all program genres to lower case

MythTV noreply at mythtv.org
Wed Feb 24 09:18:58 UTC 2016


#12503: Mythfilldatabase translates all program genres to lower case
-----------------------------------------------+---------------------------
 Reporter:  John Bergqvist <JohnLBergqvist@…>  |          Owner:  stuartm
     Type:  Bug Report - General               |         Status:  new
 Priority:  minor                              |      Milestone:  unknown
Component:  MythTV - Mythfilldatabase          |        Version:
                                               |  0.27-fixes
 Severity:  low                                |     Resolution:
 Keywords:                                     |  Ticket locked:  0
-----------------------------------------------+---------------------------

Comment (by William L. DeRieux IV <williamderieux@…>):

 Replying to [comment:2 William L. DeRieux IV <williamderieux@…>]:
 > Why not just use a case-insensitive comparison?
 >
 > {{{
 > if
 ((cat.compare(QObject::tr("movie"),Qt::CaseSensitivity::CaseInsensitive)
 == 0) ||
 >
 (cat.compare(QObject::tr("film"),Qt::CaseSensitivity::CaseInsensitive) ==
 0))
 > {
 >     // Hack for tv_grab_uk_rt
 >     pginfo->categoryType = ProgramInfo::kCategoryMovie;
 > }}}

 updated wrong use of Qt::CaseSensitivity::CaseInsensitive

 {{{
 if ((cat.compare(QObject::tr("movie"),Qt::CaseInsensitive) == 0) ||
         (cat.compare(QObject::tr("film"),Qt::CaseInsensitive) == 0))
 {
     // Hack for tv_grab_uk_rt
     pginfo->categoryType = ProgramInfo::kCategoryMovie;
 }}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12503#comment:3>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list