summaryrefslogtreecommitdiffstats
path: root/libhb/hb_json.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-06-25 15:55:59 -0700
committerJohn Stebbins <[email protected]>2019-06-25 16:06:10 -0700
commit25e1f04a63dc07e944522a10e9f9733e027cb9f5 (patch)
tree8e4eb686468ce9e86b6a8a704d4fb135310bd213 /libhb/hb_json.c
parenta8b2607e4bb59445f76d6b3d1733595bb856070c (diff)
LinGui: add queue statistics
and tweak the layout per BradleyS suggestions
Diffstat (limited to 'libhb/hb_json.c')
-rw-r--r--libhb/hb_json.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libhb/hb_json.c b/libhb/hb_json.c
index d3d190df4..70fbe4284 100644
--- a/libhb/hb_json.c
+++ b/libhb/hb_json.c
@@ -63,9 +63,10 @@ hb_dict_t* hb_state_to_dict( hb_state_t * state)
case HB_STATE_SCANNING:
case HB_STATE_SCANDONE:
dict = json_pack_ex(&error, 0,
- "{s:o, s{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}}",
"State", hb_value_string(state_s),
"Scanning",
+ "SequenceID", hb_value_int(state->sequence_id),
"Progress", hb_value_double(state->param.scanning.progress),
"Preview", hb_value_int(state->param.scanning.preview_cur),
"PreviewCount", hb_value_int(state->param.scanning.preview_count),
@@ -88,14 +89,14 @@ hb_dict_t* hb_state_to_dict( hb_state_t * state)
"Hours", hb_value_int(state->param.working.hours),
"Minutes", hb_value_int(state->param.working.minutes),
"Seconds", hb_value_int(state->param.working.seconds),
- "SequenceID", hb_value_int(state->param.working.sequence_id));
+ "SequenceID", hb_value_int(state->sequence_id));
break;
case HB_STATE_WORKDONE:
dict = json_pack_ex(&error, 0,
"{s:o, s{s:o, s:o}}",
"State", hb_value_string(state_s),
"WorkDone",
- "SequenceID", hb_value_int(state->param.working.sequence_id),
+ "SequenceID", hb_value_int(state->sequence_id),
"Error", hb_value_int(state->param.working.error));
break;
case HB_STATE_MUXING: