diff options
author | neodarz <neodarz@neodarz.net> | 2020-04-11 20:10:36 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2020-04-11 20:10:36 +0200 |
commit | 74756a15d3a1453d471c4531f0573bf884e4c4ce (patch) | |
tree | 2b394a5f76f71cffd8cf2aa235198505339cbb0e /pyfunkwhale | |
parent | 505be2cf00b17b23dd25efd1db52fbc263889e83 (diff) | |
download | pyfunkwhale-74756a15d3a1453d471c4531f0573bf884e4c4ce.tar.xz pyfunkwhale-74756a15d3a1453d471c4531f0573bf884e4c4ce.zip |
Add ability to list artist librairies
Diffstat (limited to 'pyfunkwhale')
-rw-r--r-- | pyfunkwhale/funkwhale.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pyfunkwhale/funkwhale.py b/pyfunkwhale/funkwhale.py index c2ca78a..6b63227 100644 --- a/pyfunkwhale/funkwhale.py +++ b/pyfunkwhale/funkwhale.py @@ -54,3 +54,16 @@ class Funkwhale(object): params = self._build_params(arguments) return self.client.call(f'/artists/{_id}', 'get', params).json() + + def artist_librairies(self, _id: int, page: int = None, + page_size: int = None): + """ + List available user libraries containing work from this artist + """ + + arguments = locals() + + params = self._build_params(arguments) + + return self.client.call( + f'/artists/{_id}/libraries/', 'get', params).json() |