Satfinder: set DVB-S tuner config value 'nothing' if list sat for this tuner empty
authorDima73 <Dima-73@inbox.lv>
Sat, 19 Dec 2015 11:56:17 +0000 (13:56 +0200)
committerDima73 <Dima-73@inbox.lv>
Sat, 19 Dec 2015 11:56:17 +0000 (13:56 +0200)
lib/python/Plugins/SystemPlugins/Satfinder/plugin.py

index 8c366ea..abb56a7 100644 (file)
@@ -424,8 +424,10 @@ def SatfinderMain(session, close=None, **kwargs):
                        continue
                if n.config_mode  in ("loopthrough", "satposdepends", "nothing"):
                        continue
-               if n.isCompatible("DVB-S") and n.config_mode == "advanced" and len(nimmanager.getSatListForNim(n.slot)) < 1:
-                               continue
+               if n.isCompatible("DVB-S") and n.config_mode in ("advanced", "simple") len(nimmanager.getSatListForNim(n.slot)) < 1:
+                       n.config_mode = "nothing"
+                       n.config_mode.save()
+                       continue
                nimList.append(n)
 
        if len(nimList) == 0: