From e035ecc2c81574da1c1dbead323d4fc76ed74a7d Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 17 Jul 2008 15:19:27 +0000 Subject: [PATCH] don't allow loopthrough to tuners, that already have other tuners connected to --- lib/python/Components/NimManager.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py index 650223d9..350a6b14 100644 --- a/lib/python/Components/NimManager.py +++ b/lib/python/Components/NimManager.py @@ -629,6 +629,13 @@ class NimManager: if not (type == "DVB-S" and self.getNimType(slot)): if self.hasOutputs(slot): slots.append(slot) + # remove nims, that have a conntectedTo reference on + for testnim in slots[:]: + for nim in self.getNimListOfType("DVB-S", slotid): + nimConfig = self.getNimConfig(nim) + if nimConfig.content.items.has_key("configMode") and nimConfig.configMode.value == "loopthrough" and int(nimConfig.connectedTo.value) == testnim: + slots.remove(testnim) + break slots.sort() return slots -- 2.30.2