fix kodi widget

This commit is contained in:
Evgeny
2021-08-25 18:00:01 +03:00
parent 0040d9cbef
commit b3b6276087

View File

@@ -20,7 +20,6 @@ local forward_cmd = [[ {"jsonrpc": "2.0", "method": "Player.Seek", "params": { "
local backward_cmd = [[ {"jsonrpc": "2.0", "method": "Player.Seek", "params": { "playerid": XXX, "value": { "seconds": 300 } }, "id": 1} ]] local backward_cmd = [[ {"jsonrpc": "2.0", "method": "Player.Seek", "params": { "playerid": XXX, "value": { "seconds": 300 } }, "id": 1} ]]
local buttons = { "ᐊᐊ", "-5m", "", "+5m", "ᐅᐅ", "Open Kore" } local buttons = { "ᐊᐊ", "-5m", "", "+5m", "ᐅᐅ", "Open Kore" }
local buttons_colors = { colors.blue_600, colors.blue_600, colors.blue_600, colors.blue_600, colors.blue_600, colors.blue_900 }
local buttons_cmds = { prev_cmd, backward_cmd, play_cmd, forward_cmd, next_cmd } local buttons_cmds = { prev_cmd, backward_cmd, play_cmd, forward_cmd, next_cmd }
-- global vars -- global vars
@@ -37,7 +36,7 @@ function on_resume()
init_url_from_args() init_url_from_args()
ui:set_folding_flag(true) ui:set_folding_flag(true)
ui:show_buttons(buttons, buttons_colors) ui:show_buttons(buttons)
end end
function on_click(idx) function on_click(idx)