summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/hb_json.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libhb/hb_json.c b/libhb/hb_json.c
index 191d6da5d..5fcf13b76 100644
--- a/libhb/hb_json.c
+++ b/libhb/hb_json.c
@@ -254,7 +254,8 @@ static json_t* hb_title_to_dict( const hb_title_t * title )
hb_audio_t *audio = hb_list_item(title->list_audio, ii);
audio_dict = json_pack_ex(&error, 0,
- "{s:o, s:o, s:o, s:o, s:o, s:o}",
+ "{s:o, s:o, s:o, s:o, s:o, s:o, s:o}",
+ "Track", json_integer(audio->config.in.track),
"Description", json_string(audio->config.lang.description),
"Language", json_string(audio->config.lang.simple),
"LanguageCode", json_string(audio->config.lang.iso639_2),
@@ -279,7 +280,8 @@ static json_t* hb_title_to_dict( const hb_title_t * title )
hb_subtitle_t *subtitle = hb_list_item(title->list_subtitle, ii);
subtitle_dict = json_pack_ex(&error, 0,
- "{s:o, s:o, s:o, s:o}",
+ "{s:o, s:o, s:o, s:o, s:o}",
+ "Track", json_integer(subtitle->track),
"Format", json_integer(subtitle->format),
"Source", json_integer(subtitle->source),
"Language", json_string(subtitle->lang),