(2021-03-09, 09:32)dobbelina Wrote: Here is weather.yahoo-5.1.0.zip that is edited to work on Leia.
It will also not set the addon as broken.
Just install the zip and de-select auto update after install.
https://www.sendspace.com/file/2f7b53
Nice job. However, when I fixed it here I chose to use 5.0.7, disabled auto update, and just added the 2 lines to that to get it working again. 5.1.0 was a poisoned pill, pushed out only to break those in the community that fixed it in default.py, and to deter anyone else from applying the fixes provided by the community by removing all lines of code from "get_data" in default.py.
I didn't take time to see if there are any other grenades (added/modified/removed) in his self-destructing "update", but it's worth noting that he deleted all code from the "get_data" sub in default.py, likely to send a little "love note" to those who flat ignored his ridiculous post a few pages back, and after seeing the community editing the addon to keep it alive. "Oh yeah? I'm taking my ball and going home then!!" comes to mind.
Not worth going through the rest of 5.1.0, but I do know I don't trust a dev who's proven himself to be so petty and small he'd further break an app he's already declared he's dropped support for, and with intent deny users who can't yet update to Matrix keeping it alive. In my 20 years of using xbmc/kodi I've never seen such a childish display of bad taste and vindictive coding.
- turn off auto update for Yahoo Weather
- install 5.0.7 via zip from a mirror
- apply the 2 lines of fixed code to "get_data" in default.py, or grab a working default.py
- enter your location data and enjoy