summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert McNamara <rmcnamara@mythtv.org>2011-08-20 13:49:27 (GMT)
committer Robert McNamara <rmcnamara@mythtv.org>2011-08-20 13:51:35 (GMT)
commit69e3919de6e07b822b82c8af932c33c1b76c4c4e (patch)
tree6f893fe9ea086f69a4bd09d9472b0a3eb94bfeae
parent2e3105d27a695c75bd4f0a6cfdd75becd74fbce9 (diff)
Net Utils: Only select distinct grabbers.
Prevents doubling up on grabbers configured on multiple hosts. Fixes #10000.
-rw-r--r--mythtv/libs/libmyth/netutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/libs/libmyth/netutils.cpp b/mythtv/libs/libmyth/netutils.cpp
index b7469b4..c623c17 100644
--- a/mythtv/libs/libmyth/netutils.cpp
+++ b/mythtv/libs/libmyth/netutils.cpp
@@ -124,7 +124,7 @@ GrabberScript* findSearchGrabberByCommand(const QString& commandline,
GrabberScript::scriptList findAllDBTreeGrabbers()
{
MSqlQuery query(MSqlQuery::InitCon());
- query.prepare("SELECT name,thumbnail,type,"
+ query.prepare("SELECT DISTINCT name,thumbnail,type,"
"author,description,commandline,"
"version,search,tree FROM internetcontent "
"where tree = 1 ORDER BY name;");