I would like to use the custom features while using a HD lineup. This means skip as well as other features. I can make this happen by editing the line and making custom = true on all occasions.
I have tried the following, but it does not work. The unavailable HD channels are still added to bouquets. I have omitted the inserts/deletes for sake of simplicity.
Code:
<hacks>
<![CDATA[
# Add channels by name
if service["service_name"] in channels_to_add and service["service_type"] in DvbScanner.VIDEO_ALLOWED_TYPES and channels_to_add[service["service_name"]] not in LCNs_in_use:
LCNs_in_use.append(channels_to_add[service["service_name"]])
service["number"] = channels_to_add[service["service_name"]]
service["numbers"] = [channels_to_add[service["service_name"]]]
# Add channels by ID
if service["channel_id"] in channels_to_add_by_id and service["service_type"] in DvbScanner.VIDEO_ALLOWED_TYPES and channels_to_add_by_id[service["channel_id"]] not in LCNs_in_use:
LCNs_in_use.append(channels_to_add_by_id[service["channel_id"]])
service["number"] = channels_to_add_by_id[service["channel_id"]]
service["numbers"] = [channels_to_add_by_id[service["channel_id"]]]
if "channel_id" in service and service["channel_id"] > 1080 and service["channel_id"] < 1090: # Olympics... correct FreeCAmode
service["free_ca"] = 0
elif service["service_type"] != 2 and (service["number"] in whitelist or service["service_name"] in whitelist or ("channel_id" in service and service["channel_id"] in whitelist_by_id)):
pass
if service["service_type"] != 2 and (service["number"] in blacklist or service["service_name"] in blacklist):
skip = True
elif service["service_type"] >= 17 and service["service_type"] <= 25 and service["free_ca"] != 0:
skip = True
</hacks>