Bug #306
closed
Clear weather wont show icon
Added by notthesame over 10 years ago.
Updated over 10 years ago.
Category:
Weather forecasts
Description
when it presents Clear in my Weather my icons wont I tried other changing my Weather to realistic but still same thing also different skins.
this started with 3.5.2 and I had updated to 3.5.3 and now use 3.5.4 with same issue.
i already tired to reinstall xbmc4xbox and got newest weather same issue conintues.
heres my log
http://pastebin.com/Q5h9bkzG
thank you guys :)
Files
I found that the API has changed so the XML no longer returns the string "N/A" it now returns nothing i.e. "" (XML comparison pic attached). So with a very simple change the weather icon for N/A is now working fine for me.
GetString(pElement, "icon", iTmpStr, "");
if (iTmpStr "")
// if (iTmpStr "N/A")
m_currentIcon.Format("%s128x128/na.png", WEATHER_BASE_PATH);
By the way I'm referring to the <icon></icon> field in the XML, not the <t></t> field. So I guess that means that the icon field used to return <icon>N/A</icon> as well.
- Category set to Weather forecasts
- Status changed from New to Closed
- Assignee set to buzz
- Target version set to 3.5
- Resolution set to fixed
- Affected Version changed from 3.3.2 to 3.5
Thanks brentdc42. Your fix has been applied in r32871.
Also available in: Atom
PDF