From 6290e253c6d702e7d4198b612e20cb59cb058e65 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 9 Jul 2014 20:34:47 +0200 Subject: [PATCH] print info before sending --- pandora_client/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_client/__init__.py b/pandora_client/__init__.py index 11a0da1..c03bbda 100644 --- a/pandora_client/__init__.py +++ b/pandora_client/__init__.py @@ -714,6 +714,7 @@ class Client(object): def update_info(self, info, prefix=None): if info: + print 'sending info for %d files' % len(info) post = {'info': {}, 'upload': True} post['info'] = self.get_info_for_ids(info, prefix) r = self.api.update(post) @@ -723,7 +724,6 @@ class Client(object): while t['data']['status'] == 'PENDING': time.sleep(5) t = self.api.taskStatus(task_id=r['data']['taskId']) - print 'sent info for %s files' % len(post['info']) #send empty list to get updated list of requested info/files/data post = {'info': {}} r = self.api.update(post)