Closed WKFO closed 2 years ago
I think there isn't an easy way of doing this in the browser since "downloading" basically means redirecting to https://api.modarchive.org/downloads.php?moduleid=<id>
. One possible solution is spawning a million tabs to download each liked mod but that's suboptimal. In this case I'd suggest downloading coolmods.json
by clicking on the "Favorite Mods" text and then downloading the files by running a command like this:
cat coolmods.json | jq '.[].id' | xargs -I {} curl -O -J "https://api.modarchive.org/downloads.php?moduleid={}"
@bufgix any thoughts?
I think we can download with fetch
without open new tabs. if we don't get stuck with CORS errors, we can do this.
Preferably via a button in the expanding "Favorite Mods" section.