eliemichel / LilySurfaceScraper

Import shaders end environments in Blender from a single URL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Impossible to import CC0 textures

C-7007 opened this issue · comments

Hello! Discovered this add-on today and I find it very useful. However I encountered a problem while using it : I can't import files from CC0 and only from CC0. Cgibookcase and Texture Haven work fine however.

I'm using:
LSS 1.6.1
Blender 2.91
Windows 10 20H2

Here is the error message displayed when I try to import a CC0 texture :
image

Thank you for any possible answer you could give.

I believe I know what causes this error it is the warnigns in the api request for example
https://cc0textures.com/api/v1/full_json?id=PavingStones093
<br /> <b>Warning</b>: Undefined array key "CDN-LINK" in <b>/var/www/vhosts/txilawtb.host241.checkdomain.de/b.cc0textures.com/api/v1/full_json.php</b> on line <b>36</b><br /> <br /> <b>Warning</b>: Undefined array key "CDN-LINK" in <b>/var/www/vhosts/txilawtb.host241.checkdomain.de/b.cc0textures.com/api/v1/full_json.php</b> on line <b>36</b><br /> <br /> <b>Warning</b>: Undefined array key "CDN-LINK" in <b>/var/www/vhosts/txilawtb.host241.checkdomain.de/b.cc0textures.com/api/v1/full_json.php</b> on line <b>36</b><br /> <br /> <b>Warning</b>: Undefined array key "CDN-LINK" in <b>/var/www/vhosts/txilawtb.host241.checkdomain.de/b.cc0textures.com/api/v1/full_json.php</b> on line <b>36</b><br /> <br /> <b>Warning</b>: Undefined array key "CDN-LINK" in <b>/var/www/vhosts/txilawtb.host241.checkdomain.de/b.cc0textures.com/api/v1/full_json.php</b> on line <b>39</b><br /> <br /> <b>Warning</b>: Undefined array key "CDN-LINK" in <b>/var/www/vhosts/txilawtb.host241.checkdomain.de/b.cc0textures.com/api/v1/full_json.php</b> on line <b>39</b><br /> <br /> <b>Warning</b>: Undefined array key "CDN-LINK" in <b>/var/www/vhosts/txilawtb.host241.checkdomain.de/b.cc0textures.com/api/v1/full_json.php</b> on line <b>39</b><br /> <br /> <b>Warning</b>: Undefined array key "CDN-LINK" in <b>/var/www/vhosts/txilawtb.host241.checkdomain.de/b.cc0textures.com/api/v1/full_json.php</b> on line <b>39</b><br />
This causes the JSON parser to have an error. I do not know how to fix the problem yet without a weirdly coded workaround.

I believe I fixed it.
#140

Do you still have the original problem? There is no such error in the server's response when I check curl -i https://cc0textures.com/api/v1/full_json?id=PavingStones093

Hello again. I just retried using CC0 textures and everything seems to be fine now. That's rather odd but I'm not complaining.

I believe it was fixed.