<provider>
<name>Virgin adhoc</name>
<streamtype>dvbc</streamtype>
<protocol>vmuk</protocol>
<dvbcconfigs>
<configuration key="hd_00004_dvbc_uk" netid="00004" bouquettype="hd" frequency="643000" symbol_rate="6952000" system="0" modulation="5">00004 Cardiff</configuration>
</dvbcconfigs>
<sections>
<section number="100">Entertainment</section>
<section number="245">Factual</section>
<section number="278">Lifestyle</section>
<section number="300">Music</section>
<section number="400">Movies</section>
<section number="500">Sports</section>
<section number="601">News</section>
<section number="700">Kids</section>
<section number="740">Shopping</section>
<section number="801">International</section>
<section number="851">Audio Description</section>
<section number="861">Local</section>
<section number="969">Adult</section>
<section number="990">BBC Interactive</section>
<section number="997">Information</section>
<section number="1000">Red button</section>
<section number="1020">BT Sport Interactive</section>
</sections>
<servicehacks>
<![CDATA[
try:
is_assigned
except:
is_assigned = True
dxNoSDT = 0x1 # details of lamedb flags are in README.txt
dxHoldName = 0x8 # details of lamedb flags are in README.txt
flags = dxNoSDT | dxHoldName
provider = "Virgin Media"
#Channel names have quotes, channel numbers do not. Example: ['ITV HD', 250, 500]
blacklist = [295,650,651,743,744,745,746,947,'BT Events HD','Channel Moved','Channel Closed','hayu','ITVEvents HD','L Pack Tier 4','M Pack Tier 1','More TV Pack Tier 2','motorsport.tv','M+ Pack Tier 3','Netflix','PIN Protection Help','S4C HD','XL Pack Tier 5','Vevo','Worldbox','YouTube']
bt_sports_xtra = ["BT Sport Extra 0","BT Sport Extra 1","BT Sport Extra 2","BT Sport Extra 3","BT Sport Extra 4","BT Sport Extra 5","BT Sport Extra 6"]
fta_corrections = []
netID = int(bouquet_key[3:8])
netID_whitelist = [41047,
]
# Remove some services unless in netID whitelist
# Channel names have quotes, channel numbers do not. Example: ['ITV HD', 250, 500]
selective_blacklist = [501, 502, 503, 504, 505, 506, 507, 508,]
if (service["service_name"] in selective_blacklist or service["number"] in selective_blacklist) and netID not in netID_whitelist:
skip = True
# Correct service type of HD channels not marked as such
if service["service_type"] in DvbScanner.VIDEO_ALLOWED_TYPES and service["service_type"] not in DvbScanner.HD_ALLOWED_TYPES and service["service_name"][-2:] == 'HD':
service["service_type"] = 25
for number in service["numbers"]:
if number in blacklist:
skip = True
break
elif number >= 50 and number <= 60:
service["numbers"] = [number + 952]
break
elif number == 40:
service["numbers"] = [number + 961]
break
elif number == 43:
service["numbers"] = [number + 957]
break
elif number < 100 and service["service_name"] in bt_sports_xtra:
service["numbers"] = [1021 + bt_sports_xtra.index(service["service_name"])]
break
if service["service_name"] in blacklist:
skip = True
if service["service_name"].startswith("DL_") or service["service_name"].startswith("Hidden"):
skip = True
if service["service_name"].startswith("SptsETV"):
service["free_ca"] = 1
#Some encrypted channels are wrongly flagged as FTA.
if service["service_name"] in fta_corrections:
service["free_ca"] = 1
service["service_flags"] = flags
service["provider_name"] = provider
]]>
</servicehacks>
</provider>