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 3 of 5 FirstFirst 12345 LastLast
Results 31 to 45 of 67

Thread: Custom Mix - Irish VM Cable with Sly UK Sat

  1. #31

    Title
    Senior Member
    Join Date
    Aug 2016
    Location
    Ireland
    Posts
    112
    Thanks
    127
    Thanked 26 Times in 18 Posts

  2. #32
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,629
    Thanks
    2,006
    Thanked 4,953 Times in 3,274 Posts
    HD bouquet corresponds with channelsontop, so not a bug.
    Help keep OpenViX servers online.Please donate!

  3. #33

    Title
    Senior Member
    Join Date
    Aug 2016
    Location
    Ireland
    Posts
    112
    Thanks
    127
    Thanked 26 Times in 18 Posts
    Ok thanks for looking into it for me.
    Last edited by jawz; 17-09-17 at 01:09.

  4. #34
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,629
    Thanks
    2,006
    Thanked 4,953 Times in 3,274 Posts
    Easiest way to cure this is switch off the HD bouquet and create your own.
    Help keep OpenViX servers online.Please donate!

  5. The Following User Says Thank You to Huevos For This Useful Post:

    jawz (17-09-17)

  6. #35

    Title
    Senior Member
    Join Date
    Aug 2016
    Location
    Ireland
    Posts
    112
    Thanks
    127
    Thanked 26 Times in 18 Posts
    how would you suggest i create my own hd bouquet. not sure how to instruct only hd channels to go in the bouquet.

    thanks

  7. #36
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,629
    Thanks
    2,006
    Thanked 4,953 Times in 3,274 Posts
    Spend some time reading the code. There is a list of service types in dvbscanner.py. Try to work it out. If you can't, post your attempt. It's the only way to lesrn.
    Help keep OpenViX servers online.Please donate!

  8. The Following User Says Thank You to Huevos For This Useful Post:

    jawz (17-09-17)

  9. #37

    Title
    Senior Member
    Join Date
    Aug 2016
    Location
    Ireland
    Posts
    112
    Thanks
    127
    Thanked 26 Times in 18 Posts
    thanks I was reading only the provider file. will give it a go

  10. #38
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,629
    Thanks
    2,006
    Thanked 4,953 Times in 3,274 Posts
    You need to look in the files in the scanner folder. CustomMix xml files are read by tools.py. Ifyou don't read the surrounding code you are just trying to write code in the dark.
    Help keep OpenViX servers online.Please donate!

  11. The Following User Says Thank You to Huevos For This Useful Post:

    jawz (17-09-17)

  12. #39

    Title
    Senior Member
    Join Date
    Aug 2016
    Location
    Ireland
    Posts
    112
    Thanks
    127
    Thanked 26 Times in 18 Posts
    thanks for the help Huevos but i think i will need to come back to this once i learn some basic python.

  13. #40
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,629
    Thanks
    2,006
    Thanked 4,953 Times in 3,274 Posts
    I think it works the other way around. You want to achieve something with your code. Learning just comes along the way and is secondary.
    Help keep OpenViX servers online.Please donate!

  14. #41
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,629
    Thanks
    2,006
    Thanked 4,953 Times in 3,274 Posts
    Something like this at the end of your hacks section should create an HD section as the first bouquet. Order would be identical to your current list.

    Code:
    current_first_section = sorted(sections.keys())[0] # get the current first section number
    start_HD_bouquet_at = 1 # where we are going to place our new HD section (i.e. the first bouquet)
    if start_HD_bouquet_at < current_first_section: # Only add this section if there is space
    	sections[start_HD_bouquet_at] = "HD Channels" # name the HD section
    	current_slot = start_HD_bouquet_at # remember the next available slot
    	for lcn in sorted(customised["video"].keys()): # iterate through occupied slots
    		if not (current_slot < current_first_section): # if there are no more slots in the HD section
    			break
    		if customised["video"][lcn]["service_type"] in DvbScanner.HD_ALLOWED_TYPES: # if this channel is HD
    			customised["video"][current_slot] = customised["video"][lcn]
    			current_slot += 1
    Last edited by Huevos; 18-09-17 at 12:49.
    Help keep OpenViX servers online.Please donate!

  15. The Following User Says Thank You to Huevos For This Useful Post:

    jawz (18-09-17)

  16. #42

    Title
    Senior Member
    Join Date
    Aug 2016
    Location
    Ireland
    Posts
    112
    Thanks
    127
    Thanked 26 Times in 18 Posts
    Excellent work again Huevos. Works exactly as you said.

    thanks

  17. #43

    Title
    Senior Member
    Join Date
    Aug 2016
    Location
    Ireland
    Posts
    112
    Thanks
    127
    Thanked 26 Times in 18 Posts
    Huevos is that code written just to have the bouquet placed at the top, or could i edit this to make the bouquet be placed at the bottom?

  18. #44
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,629
    Thanks
    2,006
    Thanked 4,953 Times in 3,274 Posts
    Quote Originally Posted by jawz View Post
    Huevos is that code written just to have the bouquet placed at the top, or could i edit this to make the bouquet be placed at the bottom?
    No, but the code to do that is simpler.

    Code:
    if customised["video"]: # check not zero length
    	LCN_list = sorted(customised["video"].keys()) # get LCNs sorted low to high
    	next_slot = LCN_list[-1]+1 # get last LCN +1
    	sections[next_slot] = "HD Channels" # create HD section and name it
    	for lcn in LCN_list: # run through LCNs in order
    		if customised["video"][lcn]["service_type"] in DvbScanner.HD_ALLOWED_TYPES:: # if this channel is HD
    			customised["video"][next_slot] = customised["video"][lcn] # add to HD section
    			next_slot += 1 # bump slot
    Help keep OpenViX servers online.Please donate!

  19. The Following User Says Thank You to Huevos For This Useful Post:

    jawz (19-09-17)

  20. #45

    Title
    Senior Member
    Join Date
    Aug 2016
    Location
    Ireland
    Posts
    112
    Thanks
    127
    Thanked 26 Times in 18 Posts
    thanks Huevos, but unfortunately i got a crash with this added to the bottom of my file. (I removed the previous code placing the hd bouquet at the top)

    Enigma2_crash_2017-09-19_18-02-49.log

    thanks

Page 3 of 5 FirstFirst 12345 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.