Fix setting background image and logo via remote control key mapping not working
This commit is contained in:
parent
22f6728fed
commit
004aaf3291
@ -80,11 +80,13 @@ failed, the command will exit with a success code.
|
|||||||
if len(args) != 1:
|
if len(args) != 1:
|
||||||
self.fatal('Must specify path to exactly one PNG image')
|
self.fatal('Must specify path to exactly one PNG image')
|
||||||
path = os.path.expanduser(args[0])
|
path = os.path.expanduser(args[0])
|
||||||
|
import secrets
|
||||||
ret = {
|
ret = {
|
||||||
'match': opts.match,
|
'match': opts.match,
|
||||||
'configured': opts.configured,
|
'configured': opts.configured,
|
||||||
'layout': opts.layout,
|
'layout': opts.layout,
|
||||||
'all': opts.all,
|
'all': opts.all,
|
||||||
|
'stream_id': secrets.token_urlsafe(),
|
||||||
}
|
}
|
||||||
if path.lower() == 'none':
|
if path.lower() == 'none':
|
||||||
ret['data'] = '-'
|
ret['data'] = '-'
|
||||||
|
|||||||
@ -75,11 +75,13 @@ failed, the command will exit with a success code.
|
|||||||
if len(args) != 1:
|
if len(args) != 1:
|
||||||
self.fatal('Must specify path to exactly one PNG image')
|
self.fatal('Must specify path to exactly one PNG image')
|
||||||
path = os.path.expanduser(args[0])
|
path = os.path.expanduser(args[0])
|
||||||
|
import secrets
|
||||||
ret = {
|
ret = {
|
||||||
'match': opts.match,
|
'match': opts.match,
|
||||||
'self': opts.self,
|
'self': opts.self,
|
||||||
'alpha': opts.alpha,
|
'alpha': opts.alpha,
|
||||||
'position': opts.position,
|
'position': opts.position,
|
||||||
|
'stream_id': secrets.token_urlsafe(),
|
||||||
}
|
}
|
||||||
if path.lower() == 'none':
|
if path.lower() == 'none':
|
||||||
ret['data'] = '-'
|
ret['data'] = '-'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user