summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/myth_status.py
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2019-03-11 22:18:01 (GMT)
committerBritney Fransen <brfransen@gmail.com>2019-03-11 22:18:01 (GMT)
commitf0c8e6d055143a66be140172b700d6255dd70b37 (patch)
tree2741b6fe3331918925f65edc1bf390a0cda85c1f /abs/core/LinHES-system/myth_status.py
parent791ac9c93a09be853569446f390fdf23f1f62c00 (diff)
downloadlinhes_pkgbuild-f0c8e6d055143a66be140172b700d6255dd70b37.zip
linhes_pkgbuild-f0c8e6d055143a66be140172b700d6255dd70b37.tar.gz
linhes_pkgbuild-f0c8e6d055143a66be140172b700d6255dd70b37.tar.bz2
LinHES-system: myth_status.py: add tuner name
Diffstat (limited to 'abs/core/LinHES-system/myth_status.py')
-rw-r--r--abs/core/LinHES-system/myth_status.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/abs/core/LinHES-system/myth_status.py b/abs/core/LinHES-system/myth_status.py
index cd541ca..63328d0 100644
--- a/abs/core/LinHES-system/myth_status.py
+++ b/abs/core/LinHES-system/myth_status.py
@@ -144,11 +144,12 @@ class tuner_recording_status:
a=self.be.getRecorderList()
for i in a:
outline=''
- cmd="select cardtype,hostname from capturecard where cardid=%s;" %i
+ cmd="select cardtype,hostname,displayname from capturecard where cardid=%s;" %i
self.cursor.execute(cmd)
results=self.cursor.fetchall()
type = results[0][0]
hostname = results[0][1]
+ displayname = results[0][2]
id = i
try:
c=self.be.getCurrentRecording(i)
@@ -156,10 +157,10 @@ class tuner_recording_status:
current_recording = "Idle"
else:
current_recording = "Recording %s" %c.title
- outline = " Tuner %s (%s) on %s : %s " %(id, type, hostname, current_recording)
+ outline = " Tuner %s - %s (%s) on %s : %s " %(id, displayname, type, hostname, current_recording)
self.tuner_status_list.append(outline)
except:
- outline = " Tuner %s (%s) on %s : %s " %(id, type, hostname, "Tuner Error")
+ outline = " Tuner %s - %s (%s) on %s : %s " %(id, displayname, type, hostname, "Tuner Error")
self.tuner_status_list.append(outline)
def get_tuner_status(self):