Quote:
Originally Posted by embryo
You could replace the
Code:
link = "icons/" + str(i.firstChild.nodeValue)[72:]
with
Code:
link = "icons/" + str(i.firstChild.nodeValue)[67:]
This will might fix the "cloud" cut and maybe the empty png filename.
|
That doesn't seem to work:
Code:
pygame.error: Couldn't open icons/0017_cloudy_with_light_rain.png
Reverted and tried again (I hadn't tried at all today). For whatever reason, it started working again on 72. Bizarre, maybe there was some mistake in the API for a few days. Thanks anyway though.