aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyfunkwhale/funkwhale.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pyfunkwhale/funkwhale.py b/pyfunkwhale/funkwhale.py
index 8f399ab..ec88f0d 100644
--- a/pyfunkwhale/funkwhale.py
+++ b/pyfunkwhale/funkwhale.py
@@ -13,5 +13,13 @@ class Funkwhale(object):
scopes, username, password, domain, authorization_endpoint,
token_endpoint, token_filename)
+ def _build_params(self, arguments):
+ params = {}
+ for k, v in arguments.items():
+ if k != 'self' and v is not None:
+ params[k] = v
+
+ return params
+
def artists(self):
return self.client.call('/artists/', 'get').json()