Code:
<custommix>
<hacks>
<![CDATA[
# TSIDs that contain services that need stream relay (or this could be done by LCN or CHID).
TSIDs = [0x7D3, 0x7D7, 0x7D8, 0x7DB, 0x7DC, 0x7E0, 0x7E3, 0x7E4, 0x7E5, 0x7E7, 0x7E8, 0x7E9, 0x7EA, 0x7EB, 0x7EC, 0x7ED, 0x7EE, 0x7F0, 0x7F2, 0x811, 0x838, 0x841, 0x842]
for service in sorted(list(services[section_identifier]["video"].keys())):
serv = services[section_identifier]["video"][service]
if serv["transport_stream_id"] in TSIDs and "free_ca" in serv and serv["free_ca"] == 1: # only on listed transponders and only encrypted services
url = "http://127.0.0.1:17999/1:0:1:%x:%x:%x:%x:0:0:0:" % (
serv["service_id"],
serv["transport_stream_id"],
serv["original_network_id"],
serv["namespace"],
)
serv["stream"] = quote(url)
serv["namespace"] = 33 # writing a dummy namespace is a requirement of stream relay
]]>
</hacks>
</custommix>
In the above example above there is a TSID list that belongs to 28.2E so we know which service lines to modify. Do similar with other providers.
As stream relay services are on transponders that are currently disabled in the provider file "broken_TSIDS" will need commenting out... and then run the scan on an "sdcustom" region.
Code:
broken_TSIDS = [
# 2007, #7d7 20170518
# 2011, #7db 20170425
# 2012, #7dc 20170518
# 2019, #7e3 20170518
# 2021, #7e5 20170516
# 2023, #7e7 20170331
# 2025, #7e9 20170518
# 2026, #7ea 20170425
# 2029, #7ed 20170516
]