Merge pull request #838 from ouuan/fix-playerctl-log
[contrib/playerctl]: don't log when no player is found
This commit is contained in:
commit
e590a3cf3f
1 changed files with 3 additions and 1 deletions
|
@ -85,7 +85,9 @@ class Module(core.module.Module):
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
try:
|
try:
|
||||||
playback_status = str(util.cli.execute(self.__cmd + "status")).strip()
|
playback_status = str(util.cli.execute(self.__cmd + "status 2>&1 || true", shell = True)).strip()
|
||||||
|
if playback_status == "No players found":
|
||||||
|
playback_status = None
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.exception(e)
|
logging.exception(e)
|
||||||
playback_status = None
|
playback_status = None
|
||||||
|
|
Loading…
Reference in a new issue