## Discogs Metadata for Release

The action is used to extract metadata for a Discogs Release and to save it as a key-value list in a named variable.

Both text fields may contain any of the escape sequences described in Escape Sequences.

The list is constructed such that items are separated by the default list delimiter \~ (⏎). Keys are separated by values with the list key-value delimiter \k (≔).

The following keys may be present: Album, Album artist, Artist, Artist name variations, Barcode, Catalog number, Catalog number (per label), Composer, Conductor, Copyright, Disc Count, Genre, Involved people, Label, Lyricist, Master id, Media type, Mood, Musician Credits, Part of a compilation, Publisher, Release id, Release country, Release notes, Remixer, Track list, Track count and Year.

Unless otherwise specified all of the above keys have the same meaning as the fields in the Discogs Wizard Release Details display. The construction of the fields may be affected by the Discogs Preferences.

The following keys have special interpretations:

Track count is the total number of tracks in the release, not the per disc count.

Catalog number (per label) is potentially a sub-list of items. If there is more than one item, they are separated by the List Column Delimiter \, (➤).

Involved people and Musician credits are formatted exactly as they are in the main window UI. Roles are separated from names by a = character and Role-Name items are separated by newline (\n) characters.

The Track list item contains sub-lists of all the tracks in the release. Individual track lists are separated by the List Column Delimiter \, (➤). Each sub list is a key-value list constructed such that items are separated by the secondary list delimiter \: (●). Keys are separated by values with the list key-value delimiter \k (≔). The following keys may be present: Artist, Composer, Conductor, Disc number, Involved people, Length, Lyricist, Media subtitle, Musician credits, Release ordinal position, Remixer, Title, Track Count, Track number and Track position. Length is the track duration in milliseconds. Track Count is the per disc track count.

eg: newline characters are for legibility only.

> Album≔album name⏎
> Album Artist≔album artist⏎
> ...⏎
> TrackList≔
> Title≔first track title●
> Artist≔first track's artist●
> ...
> ➤
> Title≔second track title●
> Artist≔second track's artist●
> ...
> ➤
> ...
> ⏎
> ...

If a network error occurred, there will be an error key with descriptive text. A non empty error key implies an error occurred. It is possible that the list contains valid data when error is present. Multiple network accesses may occur for each execution of this statement.