summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Morgan <smorgan@mythtv.org>2011-10-17 18:29:35 (GMT)
committer Stuart Morgan <smorgan@mythtv.org>2012-01-20 22:38:40 (GMT)
commit440ad9c59c7c87738efaf18fb7ed024b2b327044 (patch)
tree8f3f373dd35f57ed8dad79513580146e4e4ed66d
parent4e41fb2b3b7bd4c518cae808b16afe5d32d3c746 (diff)
Do not allow channels to be inserted from xmltv for unsuitable source types
Primarily this means any digital tuner, DVB/ATSC/QAM256 etc Inserting channels from xmltv guide data in these cases will result in duplicate untunable channels as vital information such as network, service and transport ids will not be available. (cherry picked from commit 87b9449b21a4ca458ae075b473b9d5e944b230fd)
-rw-r--r--mythtv/programs/mythfilldatabase/channeldata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/programs/mythfilldatabase/channeldata.cpp b/mythtv/programs/mythfilldatabase/channeldata.cpp
index 7ffb729..220c3d4 100644
--- a/mythtv/programs/mythfilldatabase/channeldata.cpp
+++ b/mythtv/programs/mythfilldatabase/channeldata.cpp
@@ -313,7 +313,7 @@ void ChannelData::handleChannels(int id, QList<ChanInfo> *chanlist)
}
}
}
- else
+ else if (insert_chan(id)) // Only insert channels for non-scannable sources
{
int major, minor;
long long freq;