PDA

View Full Version : [ABM-DVB-S/S2] adding the channel numbers hack to my custommix.xml



dsayers
17-07-16, 20:44
hi i have a custommix.xml for swapping sat hd channels with cable hd chaanels currently i use the openvix epg custom plugin but it causes issues with the trash can so i now want to add the channel numbers hack to the cusmmix.xml this is an example of what im thinking


<custommix>
<inserts>
<!-- Removed HD channels that dont clear on sat and not available on cable -->
<insert provider="sat_282_sky_uk" source="222" target="108"></insert> <!-- Sky Atlantic HD -->

<!-- replace sky hd channels with working ones from cable -->
<insert provider="cable_uk_virgin" source="109" target="106"></insert> <!-- sky one hd -->
</inserts>
<deletes>
<!-- Delete channels that have been swapped, to remove duplication -->
<delete target="422"></delete>
</deletes>
<hacks>
<![CDATA[

for service in sorted(services[section_identifier]["video"].keys()):
if service in range(1,1000):
if "interactive_name" in services[section_identifier]["video"][service]:
services[section_identifier]["video"][service]["interactive_name"] = str(services[section_identifier]["video"][service]["number"]) + " - " + services[section_identifier]["video"][service]["interactive_name"]
else:
services[section_identifier]["video"][service]["interactive_name"] = str(services[section_identifier]["video"][service]["number"]) + " - " + services[section_identifier]["video"][service]["service_name"]

]]>

</hacks>
</custommix> ive removed most of the swaps because i dont think i would need to post it all adding more confusion just need to confirm if this would work

dsayers
17-07-16, 23:40
well it works but its showing a lot of the HD channels as the wrong channel numbers with channel swap to yes and some have no channel numbers i think the no channel numbers are due to them been vm channels

48943
I have left the OpenVix Custom EPG plugin on till I can the hack working

Huevos
18-07-16, 03:40
To do what you are trying you need to turn off swap and do it manually in your xml file. Also you need to be working on the customised list not the services list in the python code.

dsayers
18-07-16, 13:33
So how do I get it to show the channel numbers on vm channels?

Huevos
18-07-16, 22:25
So how do I get it to show the channel numbers on vm channels?

Something like this.


<custommix>
<hacks>
<![CDATA[

for service in sorted(customised["video"].keys()):
if service in range(1,1000):
if "interactive_name" in customised["video"][service]:
customised["video"][service]["interactive_name"] = str(customised["video"][service]["number"]) + " - " + customised["video"][service]["interactive_name"]
else:
customised["video"][service]["interactive_name"] = str(customised["video"][service]["number"]) + " - " + customised["video"][service]["service_name"]

]]>

</hacks>
</custommix>

dsayers
18-07-16, 22:26
Thanks I'm at work so ill check in the morning when I get home

abu baniaz
18-07-16, 22:32
I hope you realise that you will have to create symlinks/make copies of the picons.

dsayers
19-07-16, 06:45
This is getting more confusing I think that I will stick with vix4.1.010 with the OpenVix Custom EPG plugin till the trashcan issue is resolved or I find an alternative method.
Thanks for the help so far.

Huevos
19-07-16, 08:39
What is confusing about FTPing a file to your box?

dsayers
19-07-16, 16:53
What is confusing about FTPing a file to your box?

No the creating system links and having to manually swap the sky hd channels rather than using the channel swap.

Huevos
19-07-16, 17:46
Nothing difficult about it compared to what youare already doing. In ABM the swaps are updated manually by Abu baniaz

dsayers
22-07-16, 08:21
hi i have used the channel swap from the sat_282_sky_uk.xml it swaps the channels but it still shows the wrong channel numbers this is what i have


<custommix>
<inserts>
<!-- Swap HD channels that don't clear on sat and not available on cable -->
<insert target="108" source="222" provider="sat_282_sky_uk" ></insert> <!-- Sky Atlantic HD -->
<insert target="113" source="204" provider="sat_282_sky_uk" ></insert> <!-- Universal HD -->
<insert target="151" source="239" provider="sat_282_sky_uk" ></insert> <!-- E! HD -->
<insert target="156" source="236" provider="sat_282_sky_uk" ></insert> <!-- Lifetime HD -->
<insert target="429" source="455" provider="sat_282_sky_uk" ></insert> <!-- LFCTV HD -->
<insert target="421" source="422" provider="sat_282_sky_uk" ></insert> <!-- Chelsea Tv HD -->
<insert target="528" source="544" provider="sat_282_sky_uk" ></insert> <!-- Nat Geo Wild HD -->
<insert target="529" source="545" provider="sat_282_sky_uk" ></insert> <!-- History HD -->
<insert target="553" source="555" provider="sat_282_sky_uk" ></insert> <!-- CI HD -->
<insert target="607" source="622" provider="sat_282_sky_uk" ></insert> <!-- Disney XD HD -->
<insert target="609" source="631" provider="sat_282_sky_uk" ></insert> <!-- Disney Channel HD -->
<insert target="611" source="628" provider="sat_282_sky_uk" ></insert> <!-- Disney Jnr HD -->
<insert target="784" source="839" provider="sat_282_sky_uk" ></insert> <!-- Star Plus HD -->

<!-- replace sky hd channels with working ones from cable -->
<insert target="106" source="109" provider="cable_uk_virgin" ></insert> <!-- sky one hd -->
<insert target="107" source="111" provider="cable_uk_virgin" ></insert> <!-- sky living hd -->
<insert target="109" source="191" provider="cable_uk_virgin" ></insert> <!-- watch hd -->
<insert target="111" source="194" provider="cable_uk_virgin" ></insert> <!-- dave hd -->
<insert target="112" source="181" provider="cable_uk_virgin" ></insert> <!-- comedy central hd -->
<insert target="114" source="165" provider="cable_uk_virgin" ></insert> <!-- syfy hd -->
<insert target="121" source="206" provider="cable_uk_virgin" ></insert> <!-- sky arts 1 hd -->
<insert target="124" source="199" provider="cable_uk_virgin" ></insert> <!-- fox hd -->
<insert target="125" source="168" provider="cable_uk_virgin" ></insert> <!-- tlc hd -->
<insert target="126" source="183" provider="cable_uk_virgin" ></insert> <!-- mtv hd -->
<insert target="132" source="200" provider="cable_uk_virgin" ></insert> <!-- alibi hd -->
<insert target="133" source="280" provider="cable_uk_virgin" ></insert> <!-- good food hd -->
<insert target="136" source="145" provider="cable_uk_virgin" ></insert> <!-- e4 hd -->
<insert target="138" source="203" provider="cable_uk_virgin" ></insert> <!-- more 4 hd -->
<insert target="179" source="179" provider="cable_uk_virgin" ></insert> <!-- itvbe hd -->
<insert target="301" source="431" provider="cable_uk_virgin" ></insert> <!-- sky premiere hd -->
<insert target="303" source="433" provider="cable_uk_virgin" ></insert> <!-- sky showcase hd -->
<insert target="304" source="434" provider="cable_uk_virgin" ></insert> <!-- sky greats hd -->
<insert target="305" source="435" provider="cable_uk_virgin" ></insert> <!-- sky disney hd -->
<insert target="306" source="436" provider="cable_uk_virgin" ></insert> <!-- sky family hd -->
<insert target="307" source="437" provider="cable_uk_virgin" ></insert> <!-- sky action hd -->
<insert target="308" source="438" provider="cable_uk_virgin" ></insert> <!-- sky comedy hd -->
<insert target="309" source="439" provider="cable_uk_virgin" ></insert> <!-- sky thriller hd -->
<insert target="310" source="440" provider="cable_uk_virgin" ></insert> <!-- sky drama hd -->
<insert target="311" source="441" provider="cable_uk_virgin" ></insert> <!-- sky scifi hd -->
<insert target="312" source="442" provider="cable_uk_virgin" ></insert> <!-- sky select hd -->
<insert target="315" source="429" provider="cable_uk_virgin" ></insert> <!-- film4 hd -->
<insert target="317" source="416" provider="cable_uk_virgin" ></insert> <!-- tcm hd -->
<insert target="358" source="311" provider="cable_uk_virgin" ></insert> <!-- mtv live hd -->
<insert target="406" source="501" provider="cable_uk_virgin" ></insert> <!-- sky sports news hq hd -->
<insert target="401" source="502" provider="cable_uk_virgin" ></insert> <!-- sky sports open 1 hd -->
<insert target="402" source="503" provider="cable_uk_virgin" ></insert> <!-- sky sports 2 hd -->
<insert target="403" source="504" provider="cable_uk_virgin" ></insert> <!-- sky sports 3 hd -->
<insert target="404" source="505" provider="cable_uk_virgin" ></insert> <!-- sky sports 4 hd -->
<insert target="405" source="506" provider="cable_uk_virgin" ></insert> <!-- sky sports 5 hd -->
<insert target="615" source="715" provider="cable_uk_virgin" ></insert> <!-- nick jr hd -->
<insert target="407" source="507" provider="cable_uk_virgin" ></insert> <!-- sky sports f1 hd -->
<insert target="410" source="521" provider="cable_uk_virgin" ></insert> <!-- british eurosport hd -->
<insert target="411" source="522" provider="cable_uk_virgin" ></insert> <!-- british eurosport 2 hd -->
<insert target="501" source="603" provider="cable_uk_virgin" ></insert> <!-- sky news hd -->
<insert target="520" source="251" provider="cable_uk_virgin" ></insert> <!-- discovery hd -->
<insert target="523" source="257" provider="cable_uk_virgin" ></insert> <!-- animal planet hd -->
<insert target="526" source="265" provider="cable_uk_virgin" ></insert> <!-- nat geo hd -->
<insert target="604" source="714" provider="cable_uk_virgin" ></insert> <!-- nickelodeon hd -->
<insert target="532" source="249" provider="cable_uk_virgin" ></insert> <!-- eden hd -->
<insert target="314" source="301" provider="sat_282_sky_uk" ></insert> <!-- sky premier sd -->
<insert target="330" source="303" provider="sat_282_sky_uk" ></insert> <!-- sky showcase sd -->
<insert target="331" source="304" provider="sat_282_sky_uk" ></insert> <!-- sky superheros sd -->
<insert target="332" source="305" provider="sat_282_sky_uk" ></insert> <!-- sky disney sd -->
<insert target="333" source="306" provider="sat_282_sky_uk" ></insert> <!-- sky family sd -->
<insert target="334" source="307" provider="sat_282_sky_uk" ></insert> <!-- sky action sd -->
<insert target="335" source="308" provider="sat_282_sky_uk" ></insert> <!-- sky comedy sd -->
<insert target="336" source="309" provider="sat_282_sky_uk" ></insert> <!-- sky thriller sd -->
<insert target="337" source="310" provider="sat_282_sky_uk" ></insert> <!-- sky dramrom sd -->
<insert target="339" source="311" provider="sat_282_sky_uk" ></insert> <!-- sky syfyhorror sd -->
<insert target="340" source="312" provider="sat_282_sky_uk" ></insert> <!-- sky select sd -->
<insert target="419" source="423" provider="sat_282_sky_irl" ></insert> <!-- setanta ireland -->
<insert target="420" source="460" provider="sat_282_sky_irl" ></insert> <!-- setanta hd -->
<insert target="458" source="530" provider="cable_uk_virgin" ></insert> <!-- bt sports/espn hd -->
<insert target="427" source="527" provider="cable_uk_virgin" ></insert> <!-- bt sports 1 hd -->
<insert target="433" source="529" provider="cable_uk_virgin" ></insert> <!-- bt sports europe hd hd -->
<insert target="457" source="528" provider="cable_uk_virgin" ></insert> <!-- bt sports 2 hd hd -->
<insert target="460" source="424" provider="sat_282_sky_irl" ></insert> <!-- setanta sports 1 -->
<insert target="541" source="274" provider="cable_uk_virgin" ></insert> <!-- h2 hd -->
<insert target="601" source="732" provider="cable_uk_virgin" ></insert> <!-- cn hd -->
<insert target="603" source="636" provider="sat_282_sky_uk" ></insert> <!-- boomerang sd -->
<insert target="492" source="1001" provider="cable_uk_virgin" ></insert> <!-- Virgin Prime Events -->
<insert target="1010" source="1002" provider="cable_uk_virgin" ></insert> <!-- Virgin Events 1 -->
<insert target="1011" source="1003" provider="cable_uk_virgin" ></insert> <!-- Virgin Events 2 -->
<insert target="1012" source="1004" provider="cable_uk_virgin" ></insert> <!-- Virgin Events 3 -->
<insert target="1013" source="1005" provider="cable_uk_virgin" ></insert> <!-- Virgin Events 4 -->
<insert target="1014" source="1006" provider="cable_uk_virgin" ></insert> <!-- Virgin Events 5 -->
<insert target="1015" source="1007" provider="cable_uk_virgin" ></insert> <!-- Virgin Events 6 -->
<insert target="1016" source="1008" provider="cable_uk_virgin" ></insert> <!-- Virgin Events 7 -->
<insert target="1017" source="1009" provider="cable_uk_virgin" ></insert> <!-- Virgin Events 8 -->
<insert target="1018" source="1010" provider="cable_uk_virgin" ></insert> <!-- Virgin Events 9 -->
</inserts>
<deletes>
<!-- Delete channels that have been swapped, to remove duplication -->
<delete target="422"></delete>
<delete target="555"></delete>
<delete target="622"></delete>
<delete target="631"></delete>
<delete target="628"></delete>
<delete target="839"></delete>
<delete target="222"></delete>
<delete target="204"></delete>
<delete target="239"></delete>
<delete target="236"></delete>
<delete target="455"></delete>
<delete target="544"></delete>
<delete target="545"></delete>
<delete target="636"></delete>
</deletes>
<!-- swapchannels affects main and sections bouquets. "number" is the SD channel. "with" is the HD channel. Swap will not occur if target is not HD -->
<swapchannels>
<channel number="101" with="115" /><!-- BBC One HD -->
<channel number="102" with="141" /><!-- BBC Two HD -->
<channel number="103" with="178" /><!-- ITV HD -->
<channel number="104" with="227" /><!-- Channel 4 HD -->
<channel number="105" with="171" /><!-- Channel 5 HD -->
<channel number="116" with="143" /><!-- BBC Four HD -->
<channel number="118" with="225" /><!-- ITV2 HD -->
<channel number="119" with="263" /><!-- ITV3 HD -->
<channel number="120" with="268" /><!-- ITV4 HD -->
<channel number="123" with="269" /><!-- ITV Encore HD -->
<channel number="418" with="453" /><!-- MUTV HD -->
<channel number="428" with="462" /><!-- Premier HD -->
<channel number="432" with="466" /><!-- Racing UK HD -->
<channel number="437" with="490" /><!-- BoxNation HD -->
<channel number="501" with="516" /><!-- Sky News HD -->
<channel number="506" with="579" /><!-- CNN HD -->
<channel number="503" with="570" /><!-- BBC News HD -->
<channel number="583" with="596" /><!-- Daystar HD -->
<channel number="613" with="633" /><!-- CBBC HD -->
<channel number="614" with="624" /><!-- CBeebies HD -->
<channel number="795" with="853" /><!-- &TV HD -->
<channel number="801" with="856" /><!-- TV Record HD -->
</swapchannels>
<hacks>
<![CDATA[

for service in sorted(services[section_identifier]["video"].keys()):
if service in range(1,1000):
if "interactive_name" in services[section_identifier]["video"][service]:
services[section_identifier]["video"][service]["interactive_name"] = str(services[section_identifier]["video"][service]["number"]) + " - " + services[section_identifier]["video"][service]["interactive_name"]
else:
services[section_identifier]["video"][service]["interactive_name"] = str(services[section_identifier]["video"][service]["number"]) + " - " + services[section_identifier]["video"][service]["service_name"]

]]>

</hacks>
</custommix>

im going to try by adding them to the inserts

edit i still had channel swap to yes

dsayers
22-07-16, 08:57
it still isnt showing the correct channel numbers after adding them to the inserts.

Huevos
22-07-16, 09:06
You do swap with inserts. Swap must be set to "no" in the providers menu.

Huevos
22-07-16, 09:08
it still isnt showing the correct channel numbers after adding them to the inserts.Post number 5.

dsayers
22-07-16, 09:22
i havent got round for the vm channel numbers these are the sky hd channels or will that correct the numbers aswell as add the channel numbers to vm?

dsayers
22-07-16, 09:45
this is what i get using the code in post 5 the vm channel numbers arent showing the sky channel numbers and 101 to 105 is incorrect Evan after changing the swaps in the custommix

49001

abu baniaz
22-07-16, 09:56
Why don't you spend your time on updating the EPG hack? Will achieve what you and many others want a lot easier than this.


Extract the ipk, download latest version of same files from GitHub. compare them, port over changes to new files.

You may even be able to just download the files from twolde's repository and they will have the changes already incorporated.

As I am no longer part of the Vix beta team, I may upload the modified files later tonight.

dsayers
22-07-16, 09:58
thanks ill look into that.

Huevos
22-07-16, 10:08
Post your custom file and debug log. You are doing something simple wrong.