Some sources were added, some removed (no longer work and cannot be made
to work), and some updated.
Details
- Reviewers
tbaumgart - Group Reviewers
KMyMoney - Commits
- R261:618324114b56: Update Web Price Quote Sources
Diff Detail
- Repository
- R261 KMyMoney
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Though I would keep the non-working ones and mark them as such. Maybe someone fixes them.
I tried to fix every one of them and it's impossible. The ones that were possible to fix were updated, so it's no matter of someone looking at it or not.
kmymoney/converter/webpricequote.cpp | ||
---|---|---|
663 | This is outdated too. I got success using "class=\"mod-tearsheet-overview__header__symbol\"><span>(.*)</span>", // symbol regexp | |
665 | This and date regex is outdated too. The new one are: "class=\"mod-ui-data-list__value\">([\\d,]*\\.\\d*)</span>", // price regexp "Data delayed at least 15 minutes, as of (.*)\\.", // date regexp |
kmymoney/converter/webpricequote.cpp | ||
---|---|---|
663 | I assume this regex returns the complete symbol from the website. The old regex was broken and the new returns with a minor modification Symbol found: 'LU0063916489:USD' "class=\"mod-tearsheet-overviewheadersymbol\"><span>([a-zA-Z0-9:]+)</span>", // symbol regex | |
665 | Using the price regex with http://funds.ft.com/uk/Tearsheet/Summary?s=AT0000639083 returns Fetching URL http://funds.ft.com/uk/Tearsheet/Summary?s=LU0063916489... because the leading string contains spaces ("Price (EUR)") which is not covered by \D At least you need Price[\D ]+([\d,]*\d+\.\d+) |
kmymoney/converter/webpricequote.cpp | ||
---|---|---|
663 | Yes, but that's completely redundant, not used anywhere, and not stored. | |
665 | It's not so here. I believe that might be new regular expression evaluator |
It's not so here. I believe that might be new regular expression evaluator
I guess this is worth a 5.0 release note because any 4.8.x user upgrading to version 5 has to update all their local stored Web Price Quotes to be usable. This could be avoided by using "Price[\D ]+([\d,]*\d+\.\d+)" as price regex.