Searching Discogs by Barcode or Catalognumber

For popular albums the discogs database often contains several hundred entries, but the search is limited to only 100 matches and these results therefore may not even contain the desired album. Currently there seems to be no way to refine the criteria for the search by artist and album, e.g. if you are looking for a remastered CD with bonus tracks you might also get a lot of Vinyl entries, but you cannot specify in the search that you only want results for CDs.
In this case a search by barcode (for newer releases) or by catalognumber could be a better way to find the desired release, because barcodes and catalog numbers usually are different for CD and Vinyl versions of an album.
Since version 3.26 the discogs query results contain a column for barcode, so this offers the possibility to use barcodes as search criteria.To perform such a search, simply put the following two lines in a file in your tag sources directory (%APPDATA%\Mp3tag\data\sources) named e.g. "Discogs Barcode or Catalog.src"

[SearchBy]=Barcode||$regexp(%barcode%,'(,.*)',)||&barcode=%s||Catalognumber||$regexp($if2(%catalognumber%,%catalogid%),'(,.*)',)||&catno=%s
[Include]=Discogs.inc

If this search method shows up to be useful it could be included in the standard distribution.

1 Like