Bug 451650 - online quotes sources for investing com does not work anymore
Summary: online quotes sources for investing com does not work anymore
Status: RESOLVED FIXED
Alias: None
Product: libalkimia
Classification: Frameworks and Libraries
Component: Packaging (show other bugs)
Version: 8.1.0
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: Ralf Habacker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-18 09:59 UTC by Ralf Habacker
Modified: 2022-03-18 18:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Updated online quote (268 bytes, application/zip)
2022-03-18 10:04 UTC, Ralf Habacker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Habacker 2022-03-18 09:59:00 UTC
The online quotes sources for investing com (https://store.kde.org/p/1449412) does not work anymore. 

STEPS TO REPRODUCE
1.  download windows build from binary-factory.kde.org for 
2.  unpack 7z archive 
3.  start onlinequoteseditor5
4. In the 'Profiles' windows select 'alkimia5'
5. In the 'Online Quotes' windows press "Install" and install online quote source for Investing.com
6. In the 'debug' windows press 'check source'

OBSERVED RESULT
(Debug) symbol=ORCL id=ORCL...
Adresse https://www.investing.com/equities/ORCL wird geholt ...
Die Datei oder der Ordner https://www.investing.com/equities/ORCL existiert nicht.
Preis für ORCL kann nicht aktualisiert werden (leere Kursnotizdaten)
ORCL ORCL

After changing the symbol to 'oracle-corp' and rechecking the source there is displayed:

(Debug) symbol=oracle-corp id=oracle-corp...
Adresse https://www.investing.com/equities/oracle-corp wird geholt ...
URL gefunden: https://www.investing.com/equities/oracle-corp...
Symbol gefunden: „“
Preis für 'oracle-corp kann nicht verarbeitet werden'
Verarbeitung des Datums ist für oracle-corp deaktiviert
Aktuelles Datum oracle-corp wird verwendet
oracle-corp oracle-corp

EXPECTED RESULT
The price for the online quotes source should be displayed

SOFTWARE/OS VERSIONS
Windows:  10
KDE Frameworks Version:  5.91
Qt Version: 5.15
Comment 1 Ralf Habacker 2022-03-18 10:00:41 UTC
> Preis für 'oracle-corp kann nicht verarbeitet werden'

The regexp for parsing the price does not work anymore and needs to be changed to 

<span class="text-2xl" data-test="instrument-price-last">([\d+,.]+)\s*</span>
Comment 2 Ralf Habacker 2022-03-18 10:04:45 UTC
Created attachment 147580 [details]
Updated online quote
Comment 3 Ralf Habacker 2022-03-18 18:10:24 UTC
Fixed with upload version 1.2 of the associated KDE store product at https://store.kde.org/p/1449412