From 5c87d987aaaaf79e02f9e1dfe58f72b2afed0a58 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Tue, 25 Jun 2019 16:05:18 -0700 Subject: [PATCH] hb_json: add new hb_state_t fields --- libhb/hb_json.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libhb/hb_json.c b/libhb/hb_json.c index 70fbe4284..89a4da479 100644 --- a/libhb/hb_json.c +++ b/libhb/hb_json.c @@ -77,7 +77,8 @@ hb_dict_t* hb_state_to_dict( hb_state_t * state) case HB_STATE_PAUSED: case HB_STATE_SEARCHING: dict = json_pack_ex(&error, 0, - "{s:o, s{s:o, s:o, s:o, s:o, s:o, s:o, s:o, s:o, s:o, s:o}}", + "{s:o, s{s:o, s:o, s:o, s:o, s:o, s:o," + " s:o, s:o, s:o, s:o, s:o, s:o}}", "State", hb_value_string(state_s), "Working", "Progress", hb_value_double(state->param.working.progress), @@ -86,8 +87,10 @@ hb_dict_t* hb_state_to_dict( hb_state_t * state) "PassCount", hb_value_int(state->param.working.pass_count), "Rate", hb_value_double(state->param.working.rate_cur), "RateAvg", hb_value_double(state->param.working.rate_avg), + "ETASeconds", hb_value_int(state->param.working.eta_seconds), "Hours", hb_value_int(state->param.working.hours), "Minutes", hb_value_int(state->param.working.minutes), + "Paused", hb_value_int(state->param.working.paused), "Seconds", hb_value_int(state->param.working.seconds), "SequenceID", hb_value_int(state->sequence_id)); break; -- 2.40.0