Results 1 to 7 of 7
  1. #1
    Senior Member

    Join Date
    Mar 2016
    Posts
    858
    Thanks
    229
    Thanked 283 Times in 189 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
    Moderator abu baniaz's Avatar

    Join Date
    Sep 2010
    Location
    East London
    Posts
    16,848
    Thanks
    4,538
    Thanked 6,571 Times in 4,439 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
    Senior Member

    Join Date
    Mar 2016
    Posts
    858
    Thanks
    229
    Thanked 283 Times in 189 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
    Moderator abu baniaz's Avatar

    Join Date
    Sep 2010
    Location
    East London
    Posts
    16,848
    Thanks
    4,538
    Thanked 6,571 Times in 4,439 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
    Moderator abu baniaz's Avatar

    Join Date
    Sep 2010
    Location
    East London
    Posts
    16,848
    Thanks
    4,538
    Thanked 6,571 Times in 4,439 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
    Senior Member

    Join Date
    Mar 2016
    Posts
    858
    Thanks
    229
    Thanked 283 Times in 189 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
    Moderator Huevos's Avatar

    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    7,732
    Thanks
    1,564
    Thanked 2,825 Times in 1,871 Posts
    Print sections. Should show why the key is missing.

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
  •