mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
zapit/src/getservices.cpp: add IsChannelTVChannel()
This commit is contained in:
@@ -139,6 +139,8 @@ class CServiceManager
|
||||
bool GetAllTransponderChannels(ZapitChannelList &list, transponder_id_t tpid);
|
||||
bool GetAllUnusedChannels(ZapitChannelList &list);
|
||||
|
||||
bool IsChannelTVChannel(const t_channel_id channel_id);
|
||||
|
||||
std::string GetSatelliteName(t_satellite_position position)
|
||||
{
|
||||
sat_iterator_t it = satellitePositions.find(position);
|
||||
|
@@ -1081,3 +1081,12 @@ void CServiceManager::UpdateSatTransponders(t_satellite_position satellitePositi
|
||||
tI->second.dump("[zapit] duplicate in sat transponders:");
|
||||
}
|
||||
}
|
||||
|
||||
bool CServiceManager::IsChannelTVChannel(const t_channel_id channel_id)
|
||||
{
|
||||
bool ret = true;
|
||||
CZapitChannel * channel = FindChannel(channel_id);
|
||||
if(channel)
|
||||
ret = (channel->getServiceType() != ST_DIGITAL_RADIO_SOUND_SERVICE);
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user