diff options
Diffstat (limited to 'abs/core/LinHES-system/idle.py')
-rwxr-xr-x | abs/core/LinHES-system/idle.py | 8 |
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: |