Trouble removing releases from folders #160
-
I'm trying to remove specific releases from specific folders, but have found that the release is being removed from my collection entirely. Is it within the capability of remove_release to specifically remove the release from a given folder and not from the collection as a whole? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
is the API python3-discogs-client uses, and that's the docs for the implementation: So you sinple pass the collection item instance id. Removing from collection folder id 0 (zero) removes from the whole collection! Show us some code of yours please! |
Beta Was this translation helpful? Give feedback.
-
I was essentially using the following thinking that it would remove the release from the specified folder:
After reading the API, I believe that the function I'm actually hoping to use is: Is there anything in the current python3-discogs-client that accomplishes this? Edit: |
Beta Was this translation helpful? Give feedback.
-
try that
|
Beta Was this translation helpful? Give feedback.
The 3rd described way appears to also delete every instance in every folder. I used the following using requests to accomplish what I was after (having already established username from authentication and other necessary variables from user input):
I looked through models.py and believe there's not currently a function that accomplishes this (perhaps I'm not passing optional arguments somewhere though). In the class CollectionFolder, a function called move_release would b…