From d0a63dfaa6d02c97e2a610bc9fef3ebe59fd4d1b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 2 Apr 2014 19:41:11 +0200 Subject: [PATCH] dont try to upload 0 size files --- pandora_client/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_client/server.py b/pandora_client/server.py index bf6827f..72e5b0b 100644 --- a/pandora_client/server.py +++ b/pandora_client/server.py @@ -140,7 +140,7 @@ class Server(Resource): if not info or 'error' in info: continue path = self.media_path(oshash) - if os.path.exists(path): + if os.path.exists(path) and os.stat(path).st_size > 0: self.update_status(oshash, 'done') self.upload.put(oshash) continue