From 8a6e6b4d77dfc16653116496d5835f9ac06a9566 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Fri, 12 Oct 2018 11:08:01 -0400 Subject: [PATCH] add category attribute in JSON RPC output for backwards compatibility --- lbrynet/daemon/json_response_encoder.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lbrynet/daemon/json_response_encoder.py b/lbrynet/daemon/json_response_encoder.py index b9cb76ab1..8942ccc89 100644 --- a/lbrynet/daemon/json_response_encoder.py +++ b/lbrynet/daemon/json_response_encoder.py @@ -80,6 +80,9 @@ class JSONResponseEncoder(JSONEncoder): else: output['type'] = 'basic' + # deprecated, will be removed after 0.30 release + output['category'] = output['type'] + return output def encode_input(self, txi):