Bug 451650

Summary: online quotes sources for investing com does not work anymore
Product: [Frameworks and Libraries] libalkimia Reporter: Ralf Habacker <ralf.habacker>
Component: PackagingAssignee: Ralf Habacker <ralf.habacker>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 8.1.0   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In:
Attachments: Updated online quote

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