Opened 13 years ago
Closed 13 years ago
Last modified 13 years ago
#10231 closed Patch - Bug Fix (fixed)
yrnoxml.pl won't show list of cities during adding new location
Reported by: | Owned by: | beirdo | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Plugin - MythWeather | Version: | 0.24.1 |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
yrnoxml.pl won't show list of cities during adding new location. The reason is that yr.no changed format of page which script parsed. You can check it with ./yrnoxml.pl -l liberec - It won't return any location.
I found that there is no way how to update script to parse homepage correctly, so I updated script to use JSON API at yr.no to find cities as yr.no home page does.
It adds dependency on JSON perl module.
Note: During work on code I found that code uses -D parameter for debugging, but command line parser don't accept it. I updated it too.
Attachments (1)
Change History (4)
Changed 13 years ago by
Attachment: | yrnoxml.pl.diff added |
---|
comment:1 Changed 13 years ago by
Milestone: | unknown → 0.25 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fix yrnoxml weather script
Seems yr.no has changed their site around a bit, in particular the searching. This now should work properly again.
Fixes #10231.
Based on the patch in the ticket, from j.novak@… but reformatted and reworked a bit.
Branch: master Changeset: 75bde2a1bea691c9b1374f2378ecb60bad1d79e7
Patch to yrnoxml.pl