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.
Results 1 to 7 of 7

Thread: Delete sections via CustomMIx

  1. #1
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,761
    Thanks
    473
    Thanked 607 Times in 433 Posts

    Delete sections via CustomMIx

    Hi with the new secondary sections on Sky UK I need to delete more channels, is it possible to delete via sections? i.e 842 to 852 Sky movie HD channels

    I did try

    Code:
    del sections[842]
    for number in customised["video"].keys():
    	if number > 852:
    		del customised["video"][number]
    But I receive a crash

    Code:
    15:21:14.1388 { D } Traceback (most recent call last):
    15:21:14.1389 { D }   File "/usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker/scanner/main.py", line 517, in doBuildIndex
    15:21:14.1392 { D }   File "/usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker/scanner/manager.py", line 168, in save
    15:21:14.1394 { D }   File "/usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker/scanner/tools.py", line 219, in customMix
    15:21:14.1395 { D }   File "<string>", line 108, in <module>
    15:21:14.1397 { D } KeyError: 842
    15:21:14.1398 [ E ] python/python.cpp:209 call [ePyObject] (PyObject_CallObject(<bound method AutoBouquetsMaker.doBuildIndex of <class 'Plugins.SystemPlugins.AutoBouquetsMaker.scanner.main.AutoBouquetsMaker'>>,()) failed)
    Or am I just best deleting them individually via deletes? Thanks

  2. #2
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,358
    Thanks
    6,439
    Thanked 9,160 Times in 6,235 Posts
    zommzoomluke's file has range deletes. Maybe you can use code from there

  3. The Following User Says Thank You to abu baniaz For This Useful Post:

    dsayers (08-05-18)

  4. #3
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,761
    Thanks
    473
    Thanked 607 Times in 433 Posts
    Quote Originally Posted by abu baniaz View Post
    zommzoomluke's file has range deletes. Maybe you can use code from there
    Thanks ill take a look ive just added individual deletes for now. Do you have a link to zommzoomluke's file? Thanks.

  5. #4
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,358
    Thanks
    6,439
    Thanked 9,160 Times in 6,235 Posts
    You can also favourites.xml and not use any of the bouquets in the provider files. only add the channels you want.

  6. #5
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,358
    Thanks
    6,439
    Thanked 9,160 Times in 6,235 Posts
    Quote Originally Posted by dsayers View Post
    . Do you have a link to zommzoomluke's file?
    https://www.world-of-satellite.com/s...-28-2-xml-file

  7. The Following User Says Thank You to abu baniaz For This Useful Post:

    dsayers (08-05-18)

  8. #6
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,761
    Thanks
    473
    Thanked 607 Times in 433 Posts
    For future reference

    Code:
    movies = [range(842,852)]
    
    blacklist = [movies,867]
    
    for service in sorted(customised["video"].keys()):
    	if customised["video"][service]["number"] in blacklist and customised["video"][service]["free_ca"] != 0:
    		del customised["video"][service]
    This currently only blacklist 867, I guess it needs adding in hack for range im not sure if its some of the code from here https://github.com/oe-alliance/oe-al...k_zzl.xml#L286

  9. #7
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,607
    Thanks
    2,005
    Thanked 4,941 Times in 3,265 Posts
    Print sections. Should show why the key is missing.
    Help keep OpenViX servers online.Please donate!

Tags for this Thread

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.