Hier beneden het verschil tussen ABM en Cablescan betreffende het inlezen van HD of SD zenders...
[code=auto:0]
************************ A B M **************************
if len(hd_logical_channel_number_dict_tmp) > 0 and bouquettype == 'hd':
for id in logical_channel_number_dict_tmp:
if id in hd_logical_channel_number_dict_tmp:
! lcntofind = hd_logical_channel_number_dict_tmp[id]["logical_channel_number"]
! lcnreplace = logical_channel_number_dict_tmp[id]["logical_channel_number"]
! for id2 in logical_channel_number_dict_tmp:
! if logical_channel_number_dict_tmp[id2]["logical_channel_number"] == lcntofind:
! logical_channel_number_dict[id] = logical_channel_number_dict_tmp[id2]
! logical_channel_number_dict[id]["logical_channel_number"] = lcnreplace
logical_channel_number_dict[id] = hd_logical_channel_number_dict_tmp[id]
else:
logical_channel_number_dict[id] = logical_channel_number_dict_tmp[id]
else:
for id in logical_channel_number_dict_tmp:
logical_channel_number_dict[id] = logical_channel_number_dict_tmp[id]
************************ Cablescan **************************
int logicalchannelid = 0;
if (hdList)
{
std::map<int, int>::const_iterator it = serviceIdToHDChannelId.find(service_id);
if (it != serviceIdToHDChannelId.end())
{
logicalchannelid = it->second;
}
}
if (!logicalchannelid)
{
std::map<int, int>::const_iterator it = serviceIdToChannelId.find(service_id);
if (it != serviceIdToChannelId.end())
{
logicalchannelid = it->second;
}
}
Edited by littlesat, 13 April 2017 - 09:56.