summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/idle.py
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-01-03 21:50:55 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-01-03 21:50:55 (GMT)
commit24f840f1ac56c1f78272d4b0de50844cb876aa1b (patch)
tree898b53ed94625774d134d6341545ecb03cf8e686 /abs/core/LinHES-system/idle.py
parente92f8c21e93d7fe48e4c302942ce0e0b66b7c97c (diff)
downloadlinhes_pkgbuild-24f840f1ac56c1f78272d4b0de50844cb876aa1b.zip
linhes_pkgbuild-24f840f1ac56c1f78272d4b0de50844cb876aa1b.tar.gz
linhes_pkgbuild-24f840f1ac56c1f78272d4b0de50844cb876aa1b.tar.bz2
LinHES-system: idle.py: fix wrong status on standby
mythwelcome-config.py: add settings so mythbackend will alsow work to shutdown and use the mythfrontend idle screen
Diffstat (limited to 'abs/core/LinHES-system/idle.py')
-rwxr-xr-xabs/core/LinHES-system/idle.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/abs/core/LinHES-system/idle.py b/abs/core/LinHES-system/idle.py
index 05dedac..2c1a749 100755
--- a/abs/core/LinHES-system/idle.py
+++ b/abs/core/LinHES-system/idle.py
@@ -226,8 +226,7 @@ def mythfe_check(cmdargs,cursor,mythDB):
else:
msg(cmdargs," Checking for playing mythfrontends...")
try:
- #frontends = mythDB.getFrontends() #use cursor instead so it doesn't test connection
- cursor.execute("select hostname from settings where value = 'FrontendIdleTimeout'")
+ cursor.execute("select distinct hostname from settings where hostname is not null;")
frontends=cursor.fetchall()
except:
return True
@@ -242,14 +241,15 @@ def mythfe_check(cmdargs,cursor,mythDB):
location = frontend.sendQuery('Location')
if location == "standbymode":
- msg(cmdargs," %s's mythfrontend is in StandbyMode." %i)
- return True
+ msg(cmdargs," %s's mythfrontend is in Standby Mode." %i)
+ continue
if ( location.startswith('Playback ') ):
msg(cmdargs," %s's mythfrontend is PLAYING." %i)
return False
else:
msg(cmdargs," %s's mythfrontend is NOT playing." %i)
+
if '.xml' in location or 'mainmenu' in location:
msg(cmdargs," %s's mythfrontend is in MENUS." %i)
else: