From 20d1da515a8be0207699a4c9759029e47065acdf Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 29 Oct 2013 16:13:41 +0100 Subject: [PATCH] always scan files in direct upload --- 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 846e3de..df58e3a 100644 --- a/pandora_client/__init__.py +++ b/pandora_client/__init__.py @@ -628,11 +628,11 @@ class Client(object): for arg in args: if os.path.exists(arg): oshash = ox.oshash(arg) + self.scan_file(arg) r = self.api.findMedia({'query': { 'conditions': [{'key': 'oshash', 'value': oshash}] }})['data']['items'] if r == 0: - self.scan_file(arg) info = self.info(oshash) filename = os.path.basename(arg) r = self.api.addMedia({