mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-07 05:38:33 +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 GetAllTransponderChannels(ZapitChannelList &list, transponder_id_t tpid);
|
||||||
bool GetAllUnusedChannels(ZapitChannelList &list);
|
bool GetAllUnusedChannels(ZapitChannelList &list);
|
||||||
|
|
||||||
|
bool IsChannelTVChannel(const t_channel_id channel_id);
|
||||||
|
|
||||||
std::string GetSatelliteName(t_satellite_position position)
|
std::string GetSatelliteName(t_satellite_position position)
|
||||||
{
|
{
|
||||||
sat_iterator_t it = satellitePositions.find(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:");
|
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