STEPS TO REPRODUCE 1. Tools 2. Update Stock and Currency Prices ... OBSERVED RESULT Fetching URL https://fx-rate.net/USD/CAD... Identifier found: '' Price found: '1.3379' (1.3379) Unable to update price for USD > CAD (no price or no date) EXPECTED RESULT A proper currency quote. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION Ubuntu Linux 22.04 LTS
It has nothing to do with the specific currencies, I get failures on other pairs. It appears they changed the presentation, and I am struggling to update the date regexp to capture correctly.
The problem seems to be that the date is now given as var userDate = 'Fri, 19 Jan 2024 20:10:02 +0000'; and I am not sure if the parsing used will accept the named month instead of numbered. Still working on it.
Try this for the date regexp var userDate = \'..., (\d* ... \d*) let me know if it works for you.
It works fine.
Great. I'll close this once we get it updated in the code base so new installs are OK.
FWIW, I'm using the following regexes to extract the data from fx-rate.net: Price: 1\s[^=]+\s*=\s*<\/span>\s*<br>\s*<span>([^\s]+) Date: <span class="datetime"[^>]+>\s*\d+:\d+:\d+\(\w+\)\s+(\d{1,2}/\d{2}/\d{4})