[prev in list] [next in list] [prev in thread] [next in thread]
List: mythtv-commits
Subject: [mythtv-commits] Ticket #13019: Patch progdetails.cpp to treat relevance column as the character it
From: "MythTV" <noreply () mythtv ! org>
Date: 2017-03-24 1:23:45
Message-ID: 076.d88694433be2c921baa12ec266f1070c () mythtv ! org
[Download RAW message or body]
#13019: Patch progdetails.cpp to treat relevance column as the character it is
-------------------------------------------------+-------------------------
Reporter: Gary Buhrmaster | Owner:
<gary.buhrmaster@…> |
Type: Patch - Bug Fix | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: Master Head
Severity: medium | Keywords:
Ticket locked: 0 |
-------------------------------------------------+-------------------------
The table programgenres contains the column relevance which is a single
character. progdetails.cpp treats it as a number, which does not work
well with high relevance values.
Completely untested (not even compile tested) proposed patch follows:
{{{
diff --git a/mythtv/programs/mythfrontend/progdetails.cpp
b/mythtv/programs/mythfrontend/progdetails.cpp
index 1132e41..388efb8 100644
--- a/mythtv/programs/mythfrontend/progdetails.cpp
+++ b/mythtv/programs/mythfrontend/progdetails.cpp
@@ -428,7 +428,7 @@ void ProgDetails::loadPage(void)
query.prepare("SELECT genre FROM programgenres "
"WHERE chanid = :CHANID AND starttime = :STARTTIME "
- "AND relevance > 0 ORDER BY relevance;");
+ "AND relevance <> '0' ORDER BY relevance;");
query.bindValue(":CHANID", m_progInfo.GetChanID());
query.bindValue(":STARTTIME", m_progInfo.GetScheduledStartTime());
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13019>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic