diff options
Diffstat (limited to 'abs/core/LinHES-config/autocard.py')
-rw-r--r-- | abs/core/LinHES-config/autocard.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/abs/core/LinHES-config/autocard.py b/abs/core/LinHES-config/autocard.py index 3d11fe0..8b70465 100644 --- a/abs/core/LinHES-config/autocard.py +++ b/abs/core/LinHES-config/autocard.py @@ -317,10 +317,12 @@ class v4l_tuners(): def get_static_device(self): return self.staticdevice + #----- class hdhr_tuners(): - def __init__(self, device): + def __init__(self, device,ip): self.device = device + self.ip = ip self.description = self.find_description() self.staticdevice = device @@ -369,6 +371,7 @@ class hdhr_tuners(): #only used by dvb, but here to be complete self.tuner_index = index + def get_dev_node(self): return self.device @@ -376,7 +379,8 @@ class hdhr_tuners(): return "hdhr" def get_description(self): - return self.description + desc = "%s - %s" %(self.description,self.ip) + return desc def get_udev_rule(self): return @@ -386,6 +390,10 @@ class hdhr_tuners(): def get_static_device(self): return self.staticdevice + + + + #----- class dvb_tuners(): @@ -589,9 +597,10 @@ def gather_hdhr(tuner_list): else: for line in lines: hdhrdevice=line.strip().split()[2] + hdhrip = line.strip().split()[5] tuners = find_hdhr_tuner(hdhrdevice) for t in tuners: - tuner_list.append(hdhr_tuners(t)) + tuner_list.append(hdhr_tuners(t,hdhrip)) except: print "Error finding HDHOMERUN" return tuner_list |