How to only get versions of a master of a certain format #155
-
Hi everyone. I would like to only get versions of a master matching certain parameters, like the format. As far as I can see the only way to do this using this repo is fetching all versions of the master
and then going through all these versions by hand, for each one queuing |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Unfortunately I think that's not supported. We only can use this api https://www.discogs.com/developers#page:database,header:database-search it can filter for format but it only searches releases not masters :( Hope I got this right on a quick look... I'll convert this to a feature request but can't promise anybody will pick it up soon. |
Beta Was this translation helpful? Give feedback.
It's pretty hard to figure it out from the source code, but
Master.versions
is actually anPaginatedList
under the hood which inheritsBasePaginatedResponse
so it has thefilter()
method and should call that specific api when invoked.Example
The
filter()
method supports all the parameters described in the API docs and can be passed in as kwargsHope that helps,…