Fix setting background image and logo via remote control key mapping not working

This commit is contained in:
Kovid Goyal 2023-03-01 17:42:55 +05:30
parent 22f6728fed
commit 004aaf3291
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 0 deletions

View File

@ -80,11 +80,13 @@ failed, the command will exit with a success code.
if len(args) != 1:
self.fatal('Must specify path to exactly one PNG image')
path = os.path.expanduser(args[0])
import secrets
ret = {
'match': opts.match,
'configured': opts.configured,
'layout': opts.layout,
'all': opts.all,
'stream_id': secrets.token_urlsafe(),
}
if path.lower() == 'none':
ret['data'] = '-'

View File

@ -75,11 +75,13 @@ failed, the command will exit with a success code.
if len(args) != 1:
self.fatal('Must specify path to exactly one PNG image')
path = os.path.expanduser(args[0])
import secrets
ret = {
'match': opts.match,
'self': opts.self,
'alpha': opts.alpha,
'position': opts.position,
'stream_id': secrets.token_urlsafe(),
}
if path.lower() == 'none':
ret['data'] = '-'