godot-asset-library icon indicating copy to clipboard operation
godot-asset-library copied to clipboard

Can't submit icon url that ends in ?raw=true

Open blackears opened this issue 8 months ago • 3 comments

I'm trying to submit to the asset library using the Custom method. I need to provide a URL to an icon. I want to provide a link to one uploaded to my Github page, but it's being rejected because it ends in ?raw=true instead of .png. Could the code allow for an exception for this from github repositories?

Same for anything I might upload to google drive. They don't end in .png either.

Error: Due to spam problems, we have to reject your asset because:
"https://github.com/blackears/terrain_layered_shader/blob/master/godot/icon.png?raw=true" doesn't look correct; it should be similar to "http<s>://<url>.<png/jpg>". Make sure the icon URL is correct.
Please contact the community administrators if this is not spam.

blackears avatar Dec 10 '23 04:12 blackears

GitHub repositories provide compatible links. In fact, the one that you've submitted is redirected to one: https://raw.githubusercontent.com/blackears/terrain_layered_shader/master/godot/icon.png

(although it's preferable if you use one from a specific commit hash rather than from the master to avoid changing it unexpectedly for users).

YuriSizov avatar Dec 11 '23 10:12 YuriSizov

We could perform the redirect on our end automatically (using a regex), so you don't have to do it yourself when submitting the asset.

Calinou avatar Dec 13 '23 15:12 Calinou

I know you're doing a redesign - it might be better in the new design for you to just host everything so you're not reliant on external sites.

But also, perhaps have your regex just ignore everything after the ? could work too.

blackears avatar Dec 13 '23 16:12 blackears