Get list of releases of my collection for each folder #64
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
HI @aurel1char, you need to cycle through the collection folder's releases iterable. Something like this:
ID 0 is a special folder ID, it's got all the releases in your collection. ID's 1, 2, 3, ... are your particular folders. HTH |
Beta Was this translation helpful? Give feedback.
-
If you find the time it would be wonderful if you submit a little chapter about that topic to our documentation. Actually we don't have anything about the basics of fetching collection data written down yet. A chapter like this would be nice: https://python3-discogs-client.readthedocs.io/en/latest/listing.html You could write a simple md file similar to this one: https://github.com/joalla/discogs_client/blob/master/docs/source/listing.md Just saying...if you find the time...and know some basic markdown... It would help the project and most of all other users. |
Beta Was this translation helpful? Give feedback.
-
Here is an example of how to dig further down in the tree and e.g get the ID of an release: https://github.com/JOJ0/discodos/blob/b03a6ba8f95cee5f8e9362010e7ed46ab587f01f/discodos/model_collection.py#L316 Find out what attributes are available by using the dir() function as described in my first reply. |
Beta Was this translation helpful? Give feedback.
-
Hi, Sorry to resurrect an old thread, but I'd be willing to help out with some of the developer documentation examples. First, thanks for maintaining the library and sharing the code examples above. I have a lot of experience writing documentation for open source projects, but focused on users, not usually developers. I sometimes find I learn best when I write down what I've learned and what a better way than to write some docs. If you're willing to answer some basic questions here in discussions as I get stuck building my app, I'll be more than happy to contribute a page like you use an example above. Thanks! Paul |
Beta Was this translation helpful? Give feedback.
HI @aurel1char, you need to cycle through the collection folder's releases iterable. Something like this:
ID 0 is a special folder ID, it's got all the releases in your collection. ID's 1, 2, 3, ... are your particular folders.
HTH