Temhil / passion-xbmc

Automatically exported from code.google.com/p/passion-xbmc
0 stars 2 forks source link

Google Weather 2.0.4 Sunrise/Sunset is broken for some cities #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If you set London or Dresden (Germany) as location the sunrise / sunset data 
includes some html tags. See screenshot

Original issue reported on code.google.com by brotbuexe@gmail.com on 16 Jul 2012 at 8:00

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by FrostBox360 on 15 Aug 2012 at 2:16

GoogleCodeExporter commented 9 years ago
I have three locations set and I see this effect only for the first one.

In module timeanddate.py, after line 303 wher ethe line: sun = re.search( 
regexp, html ).groups() is, I tried to add a cycle to dump the contents of 
'sun', element by element.
This is the output for my first location (Espoo, Finland):
0: 20 Aug 2012</td><td colspan=2 class=tc>Rest of night
1: 03:48
2: 22:58
3: 04:58
4: 21:49
5: 05:47
6: 21:00
7: 63°<img src="http://c.tadst.com/gfx/comp/sa6.png" width=14 height=14 
alt="East-northeast" title="Map direc
tion East-northeast">
8: 297°<img src="http://c.tadst.com/gfx/comp/sa26.png" width=14 height=14 
alt="West-northwest" title="Map direction West-northwest">
9: 15h 12m 46s</td><td>− 5m 19s</td><td>13:25</td><td>42.0° 
</td><td>151.354</td></tr><tr class=c1><td>21 Aug 2012</td><td colspan=2 
class=tc>Rest of 
night</td><td>03:52</td><td>22:54</td><td>05:01</td><td>21:46</td><td>05:50</td>
<td>20:57</td><td>64
10: 296
11: 15h 07m 26s
12: − 5m 20s
13: 13:24
14: 41.7
15: 151.323

This is the dump for the second location (London, UK):
0: 20 Aug 2012
1: 03:38
2: 22:27
3: 04:32
4: 21:34
5: 05:18
6: 20:48
7: 05:54
8: 20:12
9: 69
10: 291
11: 14h 17m 33s
12: − 3m 40s
13: 13:04
14: 50.7
15: 151.351

Original comment by simosa...@gmail.com on 20 Aug 2012 at 3:00