Bug 430764 - [Discogs API] Use `anv` instead `name` artist key
Summary: [Discogs API] Use `anv` instead `name` artist key
Status: RESOLVED WORKSFORME
Alias: None
Product: kid3
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Urs Fleisch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-23 20:42 UTC by ggnnotdie
Modified: 2021-01-31 08:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ggnnotdie 2020-12-23 20:42:16 UTC
SUMMARY
The artist's name can be specified differently in each release. Discogs provides this as an `anv` key.
Example: https://api.discogs.com/releases/16605237


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT
Artist name: Radiobomb

EXPECTED RESULT
Artist name: Radio Bomb

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

ADDITIONAL INFORMATION
Idk, but the discogs api seems to work well without the token.
Comment 1 ggnnotdie 2020-12-23 20:45:43 UTC
Ofc, if value of key `anv` not an empty string :) As here for example: https://api.discogs.com/releases/16562265
Comment 2 ggnnotdie 2020-12-23 20:51:35 UTC
Also do not forget about `artists` and `extraartists` in `tracklist` key.
Comment 3 Urs Fleisch 2020-12-25 09:46:46 UTC
To make it clear, let me just try to rephrase your request as far as I understand it.

Your use "Import from Discogs" with a search ("Artist", "Album") of "Radiobomb" "X-Breed-Records 01" or "Radio Bomb" "X-Breed-Records 01". Using the current development release, API token, JSON import, you get as the album result "Radiobomb* - X-Breed-Records 01 (2020) [File, WAV]" and for the track results ("Artist", "Album") "Radio Bomb" "X-Breed-Records 01". As can be seen in your "Example" link, "name" is "Radio Bomb" and "anv" is "Radiobomb". The import takes "name", which is "Radio Bomb", which is also your expected result. This is contrary to the subject of this report, which says to take "anv" instead of "name".

Even if "anv" (artist name variation) would contain your desired result, what tells me that "anv" is always the better result and should be preferred over "name"?

By the way, if you use the "normal" HTML import without token, you get the track results "Radiobomb" "X-Breed-Records 01", but there is not alternative available in the HTML output, so there is nothing I can do in this case.
Comment 4 ggnnotdie 2020-12-25 19:33:48 UTC
(In reply to Urs Fleisch from comment #3)

> Even if "anv" (artist name variation) would contain your desired result,
> what tells me that "anv" is always the better result and should be preferred
> over "name"?
That's right, I mixed up the places of observed and expected result. Sorry for mistake.