View Single Post
Old 03-10-2016, 05:58 PM   #157
Khord
Junior Member
Khord began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2016
Device: Kobo Wifi
Quote:
Originally Posted by embryo View Post
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.
Khord is offline   Reply With Quote