Skip to content

Trouble removing releases from folders #160

Discussion options

You must be logged in to vote

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):

url = f"https://api.discogs.com/users/{username}/collection/folders/{folder_id}/releases/{release_id}/instances/{instance_id}"

data = {'folder_id': target_folder_id}

response = requests.post(url, auth=auth, json=data)

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…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@JOJ0
Comment options

JOJ0 Nov 7, 2024
Maintainer

@captain-cronch
Comment options

Answer selected by captain-cronch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants