Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 1 of 2 12 LastLast
Results 1 to 15 of 30

Thread: Channel Number Hack plus HD Swap

  1. #1

    Title
    Junior Member
    Join Date
    Mar 2016
    Posts
    16
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Channel Number Hack plus HD Swap

    Hi,

    I'm using the Sky UK London Custom region, and the channel number hack in CustomMix.xml file. Is there any way to get the channel number hack to name the channels as "101 - BBC One HD, 102 - BBC Two HD, 103 - ITV HD etc" instead of "115 - BBC One HD, 141 - BBC Two HD, 178 - ITV HD etc".

    I've tried swapping with the normal swap in the provider file; swapping by inserting and removing in CustomMix and swapping by changing CustomLCN, but the channel number hack still shows the original channel numbers (115, 141, 178 etc instead of 101, 102, 103 etc)

    Thanks

  2. #2
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,632
    Thanks
    2,007
    Thanked 4,954 Times in 3,275 Posts
    You need to switch off swap and do it in the CustomMix file.

    I'll post how in a while.
    Help keep OpenViX servers online.Please donate!

  3. #3

    Title
    Junior Member
    Join Date
    Mar 2016
    Posts
    16
    Thanks
    2
    Thanked 2 Times in 2 Posts
    I've tried
    <insert provider="sat_282_sky_uk" source="115" target="101"></insert> and <delete target="115"></delete> etc
    but that doesn't work, the channels do swap but the numbers are still wrong, is this what you're saying I should do, or is it something different?

  4. The Following User Says Thank You to danm14 For This Useful Post:

    dsayers (26-07-16)

  5. #4
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,632
    Thanks
    2,007
    Thanked 4,954 Times in 3,275 Posts
    Put the .pyo files in /usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker/scanner

    Put the .xml in /usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker/custom

    Swap channels = yes

    @dsayers, see if this works with your Sky/VM mix.
    Attached Files Attached Files
    Help keep OpenViX servers online.Please donate!

  6. The Following 4 Users Say Thank You to Huevos For This Useful Post:

    danm14 (26-07-16),dsayers (26-07-16),roybach (26-07-16),sashires (31-07-16)

  7. #5

    Title
    Junior Member
    Join Date
    Mar 2016
    Posts
    16
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Yes, this works perfectly, thanks Huevos!
    If I want to delete the SD versions of these channels (have 115 blank instead of being BBC One SD etc) is it just a matter of <delete>ing these in CustomMix.xml?

    Also, I assume I'll have to keep replacing the pyo files every time there's an update for ABM - is there any way to stop the files from being replaced during update?
    Last edited by danm14; 26-07-16 at 21:02.

  8. #6
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,632
    Thanks
    2,007
    Thanked 4,954 Times in 3,275 Posts
    Quote Originally Posted by danm14 View Post
    I assume I'll have to keep replacing the pyo files every time there's an update for ABM - is there any way to stop the files from being replaced during update?
    No you wont have to keep updating the .pyo files.

    Quote Originally Posted by danm14 View Post
    If I want to delete the SD versions of these channels (have 115 blank instead of being BBC One SD etc) is it just a matter of <delete>ing these in CustomMix.xml?
    No it is not that simple. The logic of swap is both ends of the swap exist and the promoted channel is HD.

    If you want to go down that path you need to forget using swap and create your own.
    Help keep OpenViX servers online.Please donate!

  9. #7

    Title
    Junior Member
    Join Date
    Mar 2016
    Posts
    16
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by Huevos View Post
    No you wont have to keep updating the .pyo files.

    No it is not that simple. The logic of swap is both ends of the swap exist and the promoted channel is HD.

    If you want to go down that path you need to forget using swap and create your own.
    Where would you start in doing that? Is it possible to remove a channel from, say, channel 101, and replace it with another channel?

  10. #8
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,632
    Thanks
    2,007
    Thanked 4,954 Times in 3,275 Posts
    So BBC One HD is at 101 and 115 is empty?
    Help keep OpenViX servers online.Please donate!

  11. #9

    Title
    Junior Member
    Join Date
    Mar 2016
    Posts
    16
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Exactly, and so the channel number hack calls it "101 BBC One HD" and not "115 BBC One HD".

  12. #10

    Title
    Senior Member
    Join Date
    May 2015
    Posts
    104
    Thanks
    25
    Thanked 19 Times in 17 Posts
    Can anyone pull together a guide on how to set this up please?

  13. #11

    Title
    Junior Member
    Join Date
    Mar 2016
    Posts
    16
    Thanks
    2
    Thanked 2 Times in 2 Posts
    I'll happily make a stab at it - I just need to find a way to remove a given channel from a channel number, and put it on another channel number.
    It's possible to blacklist "a channel number" or "a channel" - ie remove whatever channel is on 101, or remove BBC One HD from wherever it is.

    If I blacklist "101", I can't put BBC One HD there, because no matter what channel is on 101, it's deleted.
    If I blacklist "BBC One HD", I can't put it on 101, because no matter where BBC One HD is, it's deleted.

    I can't do anything on the Virgin side, simono5, as I have no access to cable.

  14. The Following User Says Thank You to danm14 For This Useful Post:

    simono5 (26-07-16)

  15. #12
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,632
    Thanks
    2,007
    Thanked 4,954 Times in 3,275 Posts
    Try this.

    Code:
    <custommix>
    	<hacks>
    <![CDATA[
    
    if "swapchannels" in providers[section_identifier] and len(providers[section_identifier]["swapchannels"]) > 0 and "preferred_order" in providers[section_identifier]["swapchannels"][0]:
    	for swaprule in providers[section_identifier]["swapchannels"][0]["preferred_order"]:
    		if swaprule[0] in services[section_identifier]["video"] and swaprule[1] in services[section_identifier]["video"] and services[section_identifier]["video"][swaprule[1]]["service_type"] >= 17:
    			customised["video"][swaprule[0]] = customised["video"][swaprule[1]]
    			customised["video"][swaprule[0]]["number"] = swaprule[0]
    			del customised["video"][swaprule[1]]
    			
    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>
    Help keep OpenViX servers online.Please donate!

  16. The Following 2 Users Say Thank You to Huevos For This Useful Post:

    Clabs (26-07-16),danm14 (26-07-16)

  17. #13

    Title
    Junior Member
    Join Date
    Mar 2016
    Posts
    16
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Exactly what I wanted, Huevos! I owe you a pint or two some day!

  18. #14
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,632
    Thanks
    2,007
    Thanked 4,954 Times in 3,275 Posts
    Quote Originally Posted by simono5 View Post
    Can anyone pull together a guide on how to set this up please?
    A guide on setting what up? Please be specific.
    Help keep OpenViX servers online.Please donate!

  19. #15
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,764
    Thanks
    473
    Thanked 607 Times in 433 Posts
    Quote Originally Posted by Huevos View Post
    Put the .pyo files in /usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker/scanner

    Put the .xml in /usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker/custom

    Swap channels = yes

    @dsayers, see if this works with your Sky/VM mix.
    Thanks I'll try after work or over the weekend

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.