Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Commit 07cf593

Browse files
author
dave_albright
committed
v1.0.17
Yahoo forecast issues - yet again
1 parent 2c717c2 commit 07cf593

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

addon.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<addon id="weather.multi" name="Multi Weather" version="1.0.16" provider-name="cytech">
2+
<addon id="weather.multi" name="Multi Weather" version="1.0.17" provider-name="cytech">
33
<requires>
44
<import addon="xbmc.python" version="3.0.0"/>
55
<import addon="script.openweathermap.maps" version="1.0.4"/>

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v1.0.17
2+
- fix yahoo weather again
3+
14
v0.0.16
25
- fix yahoo weather again
36

lib/providers/yahoo/yahooutils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ def get_ycreds():
9494
ycookie = response.cookies['A1S'].replace('&j=GDPR', '')
9595
response = requests.get(YURL, headers=HEADERS, cookies=dict(A1=ycookie), timeout=10)
9696
match = re.search('WeatherStore":{"crumb":"(.*?)","weathers', response.text, re.IGNORECASE)
97+
if not match:
98+
match = re.search("win.YAHOO.context.crumb = '(.*?)'", response.text, re.IGNORECASE)
99+
# match = re.search('type="hidden" name="crumb" value="(.*?)"', response.text, re.IGNORECASE)
97100
ycrumb = codecs.decode(match.group(1), 'unicode-escape')
98101
ystamp = time.time()
99102
ADDON.setSettingString('ycookie', ycookie)

0 commit comments

Comments
 (0)