Bug 432566

Summary: Can't retrieve data from Discogs
Product: [Applications] kid3 Reporter: Mark Fraser <mfraz74+kde>
Component: generalAssignee: Urs Fleisch <ufleisch>
Status: RESOLVED FIXED    
Severity: normal CC: hormey
Priority: NOR    
Version First Reported In: 3.8.x   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mark Fraser 2021-02-06 11:29:17 UTC
SUMMARY
Can't retrieve data from Discogs

STEPS TO REPRODUCE
1. Select track
2. Click File > Import from Discogs
3. Click Find
4. Click on one of the results listed

OBSERVED RESULT
Error: Error transferring https://www.discogs.com/... - server replied:Not Found

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
Comment 1 Urs Fleisch 2021-02-07 18:21:51 UTC
Unfortunately, they have changed the HTML format once again, this time heavily. Until I find the time to fix this, there is the possibility to use the JSON API with Kid3 3.8.5, see bug 427277. You have to register for an API key in Discogs and you can then enter it in the import dialog.
Comment 2 Horst Nabelmeyer 2021-02-08 09:58:34 UTC
Thanks for the work around.
Comment 3 Urs Fleisch 2021-02-09 13:29:23 UTC
Git commit 97464a9f8a042182b918dc436444eefc1ec5e5dc by Urs Fleisch.
Committed on 09/02/2021 at 13:22.
Pushed by ufleisch into branch 'master'.

Fix Discogs import
Related: bug 432678, bug 427277

M  +5    -3    src/core/import/serverimporter.cpp
M  +348  -240  src/plugins/discogsimport/discogsimporter.cpp
M  +14   -4    src/test/testdiscogsimporter.cpp

https://invent.kde.org/multimedia/kid3/commit/97464a9f8a042182b918dc436444eefc1ec5e5dc
Comment 4 Urs Fleisch 2021-02-09 14:05:54 UTC
A fixed version kid3-git20210209 is now available on https://sourceforge.net/projects/kid3/files/kid3/development/.