[~] Refactor
This commit is contained in:
parent
1f5992129a
commit
e4fbd6ece3
@ -2009,8 +2009,6 @@ def media_keys(argv):
|
||||
|
||||
msg = None
|
||||
|
||||
logging.info('media_keys, command = %s' % options.command)
|
||||
|
||||
mode = None
|
||||
is_mocp = lambda : \
|
||||
subprocess.call([
|
||||
@ -2087,6 +2085,17 @@ def media_keys(argv):
|
||||
else:
|
||||
raise NotImplementedError
|
||||
|
||||
logging.info(
|
||||
json.dumps(
|
||||
dict(
|
||||
command=options.command,
|
||||
msg=msg,
|
||||
mode=mode,
|
||||
),
|
||||
ensure_ascii=False
|
||||
)
|
||||
)
|
||||
|
||||
return dict(
|
||||
msg=msg,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user