summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Morgan <smorgan@mythtv.org>2011-10-17 18:29:35 (GMT)
committer Stuart Morgan <smorgan@mythtv.org>2011-10-17 18:29:35 (GMT)
commit87b9449b21a4ca458ae075b473b9d5e944b230fd (patch)
tree849c3c183e6f2f42fa941962822b11f1b29657b8
parentaa44cb6175e612e6503f8777e0ed30ab8aaabf0e (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.
-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 fe598a7..16bd50e 100644
--- a/mythtv/programs/mythfilldatabase/channeldata.cpp
+++ b/mythtv/programs/mythfilldatabase/channeldata.cpp
@@ -315,7 +315,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 = 0;
long long freq = 0;