Listing results. Show "Discogs Release ID" column value

Hi there!
I am wondering if there is any way to show the Discogs Release ID on a column when listing results after making a search for discogs with "artist+album title". It would make life easier when checking first the release ID on discogs webpage and then look for results on the software, because sometimes I need to check discogs webpage first to know what release is actually the one I'm tagging on the software.
If anybody could shed some light on this...
Thanks in advance!

You can add custom columns by right-clicking on a column header and selecting "Customize columns..."
For Discogs Release ID you can follow this example

Click "New" to create a new custom column; fill "Name", "Value" and "Field" with the info from the picture (for example); optionally check "Numeric" (this will make Mp3Tag format the field as a number and not text), and "Ok" to submit.

You can see the resulting column in the picture.

Hope this helps.

I think, the OP is asking for this additional column in the search result list in the Websource Script BEFORE it will be selected and then tagged to the files itself. This would help to identify the matching release from the result list.

Or I'm wrong, @eowar?

You're perfectly right, @LyricsLover
That's exactly what I meant.
I am already able to show Discogs Release ID number on the columns of the tags. I knew that, but thanks anyway, @rboss !!!

Good point. I interpreted "search results" as the final results of a search, and not the results of the initial search term (personally, I refer to those as "query results" to avoid confusion).

Apologies for the misunderstanding.

Do you ask for something like this?
image

Where the "DGID" like 2170608 would be the release ID as it is used in the "Preview"-URL:
https://www.discogs.com/release/2170608

Or with the example from rboss to choose if you want the release 12376108 or 12376099 from the same Artist "A Himitsu" and the same album "Cease" from the same year 2015 and the same Label "Not on Label..." and the same country "Sweden":

@rboss Oh, no problem at all! And thank you for your collaboration! :hugs:
@LyricsLover Oh, brilliant! That's actually what I need! :smiling_face_with_three_hearts: Now, I have no clue on what to do to get that column on the query. I investigated the "Tag fonts" section of Options on the software but there's only settings for freedb and freedb local... :thinking: And there's no menu of any kind to try to get this thing sorted.

As the Discogs-Websource-Scripts are officially maintained by @Florian, you would have to ask him to support this additional column in future updates.

In the meantime you could create a backup copy of the existing official Discogs.inc file in your Mp3tag configuration subfolder \data\sources and then modify the original Discogs.inc file in a text editor like Notepad++.

You need to change 2 positions:

Line #39 from
[IndexFormat]=%Artist%|%Album%|%_url%|%Format%|%Year%|%Label%|%Catalog%|%Country%|%_preview%
to this new
[IndexFormat]=%DGID%|%Artist%|%Album%|%_url%|%Format%|%Year%|%Label%|%Catalog%|%Country%|%_preview%
You can name the new additional column DGID to whatever name you like, just enclose it in % characters

Then, after Line #57 with the existing
json_foreach "results"
insert the following 4 additional code lines

        # ID
        json_select "id"
        sayrest
        say "|"

They should be followed by the existing lines with

# Artist
json_select title

The modification should look like this (snippet for the changed part only):

Save the modified Discogs.inc file and select it as usual inside Mp3tag.
You should see the additional column in the "search results..." overview immediately.

Just for completeness:
This change could be overwritten in a next Mp3tag update. Therefore you should also make a copy from your own changes to easily adjust it.

Please let me know, if this works for you.

Thanks, @LyricsLover !!!
I'm going to try it, let's see how clumsy I am... :nerd_face: hehe
Edit: I see I have two discogs.inc files: one in program files folder for Mp3tag, and the other is in the Mp3tag folder into Roaming in AppData. Do I have to edit the two of them? Checking it with Beyond Compare it says the two files are binary same.
I'm going to try for now with the one in program files folder.
Thanks again!

Use the file that can be found in the folder that opens with the function File>Open configuration folder

Only editing the one within program files folder isn't enough. Copied edited one and pasted it into appdata roaming folder for mp3tag (as @ohrenkino has just suggested) and worked flawlessly:


Thanks to you all!