From ba7b068305731738ed097849fd317ea1d37a35cc Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 25 Mar 2013 18:28:30 +0530 Subject: [PATCH] use renamed *Media api --- pandora_client/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_client/__init__.py b/pandora_client/__init__.py index 00a818a..4015377 100644 --- a/pandora_client/__init__.py +++ b/pandora_client/__init__.py @@ -497,14 +497,14 @@ class Client(object): for arg in args: if os.path.exists(arg): oshash = ox.oshash(arg) - r = self.api.findFiles({'query': { + 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.addFile({ + r = self.api.addMedia({ 'id': oshash, 'info': info, 'filename': filename