From 44c24cee0f96fa2ae2a4a7991c7c683b2502abd9 Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 4 Jul 2021 12:03:05 +0200 Subject: [PATCH] [jsonapi] Add "comment" field to track object --- src/httpd_jsonapi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/httpd_jsonapi.c b/src/httpd_jsonapi.c index 5eb5e58a..f99ae702 100644 --- a/src/httpd_jsonapi.c +++ b/src/httpd_jsonapi.c @@ -292,6 +292,7 @@ track_to_json(struct db_media_file_info *dbmfi) safe_json_add_string(item, "album_artist_id", dbmfi->songartistid); safe_json_add_string(item, "composer", dbmfi->composer); safe_json_add_string(item, "genre", dbmfi->genre); + safe_json_add_string(item, "comment", dbmfi->comment); safe_json_add_int_from_string(item, "year", dbmfi->year); safe_json_add_int_from_string(item, "track_number", dbmfi->track); safe_json_add_int_from_string(item, "disc_number", dbmfi->disc);