freesound icon indicating copy to clipboard operation
freesound copied to clipboard

Download sounds of bookmark category in single zip file

Open ffont opened this issue 6 years ago • 3 comments

As a user I want to be able to create lists of sounds bookmarked in categories and then download them all together in a single ZIP file similar to when downloading a pack

We can do that with relative ease re-using downloading code for the packs use case: https://github.com/MTG/freesound/blob/4616b3410cd171a7b3ec45ce431b11be878555b3/sounds/views.py#L370-L395

Nevertheless we have to decide how to store these downloads. I guess we should create BookmarkDownload and BookmarkSoundDownload tables like in the packs case. Or we could decide to not store these downloads in DB for now and wait until we refactor bookmarks into Collections. Food for thought...

ffont avatar Apr 08 '19 14:04 ffont

Hi, Thank you so much for your work. Using the freesound code, I want to download some packs in a single ZIP file similar to when downloading a pack on the website. I guess this script does this. I wanted to check if it is ready to use or if you can help me point to a particular location or an example code on how to use this script. Thank you.

aarora8 avatar Jun 10 '20 21:06 aarora8

Hi, This is not a script to download a zip of packs. This is currently not possible. What you could do is use the API to automate downloads. You can check documentation here http://freesound.org/docs/api/

cheers

ffont avatar Jun 11 '20 07:06 ffont

Thank you, I am now able to download my bookmarked sounds using the freesound API (https://github.com/MTG/freesound-python) and OAuth2 authentication.

aarora8 avatar Jun 11 '20 19:06 aarora8