Page 25 of 25 FirstFirst ... 15232425
Results 361 to 366 of 366
  1. #361
    ViX Beta Tester birdman's Avatar

    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    4,873
    Thanks
    107
    Thanked 1,027 Times in 822 Posts
    Quote Originally Posted by dsayers View Post
    What would be bad with adding to EPG menu?
    Given that they aren't meant to be global keybindings (the idea is for them to be EPG-specific) - I would say, "Nothing".
    Last edited by birdman; 06-12-18 at 01:19.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  2. #362
    ViX Beta Tester birdman's Avatar

    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    4,873
    Thanks
    107
    Thanked 1,027 Times in 822 Posts
    Quote Originally Posted by dsayers View Post
    Long series of if tests always give the impression that the coding could be simplified.
    If nothing else, 8 if tests in a row for the same value should be replaced by 1 if and 7 elifs, as it can only have one of the values at a time.

    e.g.:
    Code:
    #!/usr/bin/python
    #
    
    class FuncMap(dict):
        def __missing__(self, key):
            return None
    
    RGYBKeyMap = FuncMap()
    RGYBKeyMap = {
       "24plus": "self.nextService()",
       "24minus": "self.prevService()",
       "timer": "self.RecordTimerQuestion(True)",
       "imdb": "self.openIMDb()",
       "autotimer": "self.addAutoTimer()",
       "bouquetlist": "self.Bouquetlist()",
       "epgsearch":  "self.openEPGSearch()",
       "showmovies": "self.showMovieSelection()",
       "record": "self.RecordTimerQuestion()",
       "gotodatetime": "self.enterDateTime()",
    }
    
    for graph_yellow in ("24plus", "autotimer", None, "gotodatetime"):
        if graph_yellow:
            to_call = RGYBKeyMap[graph_yellow]
        else:
            to_call = "self.openEPGSearch()"
        if not to_call:     # Set default
            to_call = "self.openEPGSearch()"
        print graph_yellow, "maps to function", to_call
    Last edited by birdman; 06-12-18 at 01:18.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

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

    dsayers (06-12-18)

  4. #363
    Senior Member dsayers's Avatar

    Join Date
    Mar 2016
    Posts
    1,027
    Thanks
    270
    Thanked 343 Times in 237 Posts
    Looks like I missed a few of bbbuk commits https://github.com/davesayers2014/en...6b5310f7bb7ea4

    Only issue I had to # #self['dialogactions'] lines.

  5. #364
    ViX Beta Tester birdman's Avatar

    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    4,873
    Thanks
    107
    Thanked 1,027 Times in 822 Posts
    Quote Originally Posted by dsayers View Post
    Looks like I missed a few of bbbuk commits https://github.com/davesayers2014/en...6b5310f7bb7ea4
    Which has one array repeated 4 times.
    Just create it once and use it 4 times...
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  6. #365
    Senior Member dsayers's Avatar

    Join Date
    Mar 2016
    Posts
    1,027
    Thanks
    270
    Thanked 343 Times in 237 Posts
    Quote Originally Posted by birdman View Post
    Which has one array repeated 4 times.
    Just create it once and use it 4 times...
    Thanks ill take a look when I get chance.

  7. #366
    Forum Supporter
    Donated Member


    Join Date
    Jun 2014
    Posts
    1,041
    Thanks
    439
    Thanked 326 Times in 208 Posts
    Quote Originally Posted by birdman View Post
    Given that they aren't meant to be global keybindings (the idea is for them to be EPG-specific) - I would say, "Nothing".
    Unfortunately, it was overuled by some in Vix!

    If I remember correctly there was even a poll and it was very popular but thread was ultimately closed.

    I do know there is at least one member who did try to keep mod upto date with changes within Vix.

Page 25 of 25 FirstFirst ... 15232425

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.