]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
tvh-json.py: the list is returned instead dictionary
authorJaroslav Kysela <perex@perex.cz>
Fri, 1 Mar 2019 15:39:30 +0000 (16:39 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 1 Mar 2019 15:43:37 +0000 (16:43 +0100)
lib/api/python/tvh-json.py
src/api/api_raw.c

index 62df9fa02d7eac95724fa8028a6eacde78d9655e..4619d593746bd1133b745937d4cc61cd86042892 100755 (executable)
@@ -124,10 +124,8 @@ def do_get(*args):
 def do_export(*args):
     if len(args) < 1: error(1, 'get [uuid]')
     body = do_get0('raw/export', {'uuid':args[0]})
-    if type(body) != type({}):
+    if type(body) != type([]):
         error(11, 'Unknown data')
-    if 'entries' in body:
-        body = body['entries']
     if len(body) == 1:
         body = body[0]
     if not 'uuid' in body:
index 8f138970935df0483832e5639f17d4848d23de89..75338d2e6dd9e89b944023ca246e25afed984394 100644 (file)
@@ -184,13 +184,11 @@ api_idnode_raw_import
   int count = 0;
   const idnodes_rb_t *domain = NULL;
 
-  htsmsg_print(args);
   if (!(f = htsmsg_field_find(args, "node")))
     return EINVAL;
   if (!(msg = htsmsg_field_get_list(f)))
     if (!(msg = htsmsg_field_get_map(f)))
       return EINVAL;
-  htsmsg_print(msg);
 
   tvh_mutex_lock(&global_lock);