TheRandomLabs / CurseAPI

A Java library for handling interactions with CurseForge.
MIT License
30 stars 3 forks source link

File information cannot be retrieved for projects on BukkitDev #25

Closed TheKinrar closed 4 years ago

TheKinrar commented 4 years ago

I'm trying to list files for a Curse project but I get an empty set.

CurseAPI.files(id).get().size() returns 0 but CurseAPI.project(id).get().name() returns the right project name - in my testing case WorldEdit (with id = 31043).

Sorry if I'm doing something wrong.

TheRandomLabs commented 4 years ago

This is an issue on CurseForge's end; they're not providing any information for WorldEdit's files. Unfortunately, there's not much I can do about this.

TheKinrar commented 4 years ago

Oh, okay. Is that a common issue? Thanks for the quick reply. :)

TheRandomLabs commented 4 years ago

This is the first time I've seen this, but it might depend on the project type.

TheKinrar commented 4 years ago

Just looked into it and it seems that all BukkitDev plugins return no files info; maybe because as they are plugins they are not meant to be installed by the Twitch app.

Great library anyway and thanks for the help :)

TheRandomLabs commented 4 years ago

Yeah, that's a shame. Thank you!

JamesPeters98 commented 4 years ago

I just posted this on the Twitch feedback forum to hopefully get someone to look at this! https://twitch.uservoice.com/forums/915910-game-mods-curseforge/suggestions/40223431-bukkitdev-files-api

TheRandomLabs commented 4 years ago

Pretty sure the API is only meant for use by the launcher, so I doubt anything will be done.

TheRandomLabs commented 4 years ago

Closing because this will likely never be fixed.