From fc0d0612c8f37537bc844ec78e57dbaabb6cc846 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 11 Apr 2014 14:08:45 +0200 Subject: [PATCH] send chunk offset --- pandora_client/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora_client/__init__.py b/pandora_client/__init__.py index 7e53fc5..4ccff31 100644 --- a/pandora_client/__init__.py +++ b/pandora_client/__init__.py @@ -1022,6 +1022,7 @@ class API(ox.API): form.add_file('chunk', fname, chunk) if len(chunk) < CHUNK_SIZE or f.tell() == fsize: form.add_field('done', '1') + form.add_field('offset', str(done)) try: data = self._json_request(uploadUrl, form) except KeyboardInterrupt: