# \[WS\] Discogs Album search + VA

**URL:** https://community.mp3tag.de/t/ws-discogs-album-search-va/1992
**Category:** Web Sources Scripts
**Created:** [May 23, 2005, 12:08pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992 "2005-05-23T12:08:38Z")
**Posts on this page:** 20
**Page:** 7

<div class="post-metadata">

### Author: ![g0thicangy](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/90ced4/32.png) [@g0thicangy](https://community.mp3tag.de/u/g0thicangy)
#### Post date: [April 7, 2011, 2:15pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/121 "2011-04-07T14:15:45Z")

</div>

wonderful!

the new script works fine as better as before!

my favorit is SEARCH for ARTIST + TITEL

THX!

---

<div class="post-metadata">

### Author: ![Kamil](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/94ad74/32.png) [@Kamil](https://community.mp3tag.de/u/Kamil)
#### Post date: [April 13, 2011, 10:33pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/122 "2011-04-13T22:33:31Z")

</div>

Hello,

I am new to this forum and to mp3tag. Everything worked fine until today. I am again getting an message in the Album field and no info is pulled from Discogs.

Is there something wrong with the script or Discogs or is the problem on my end?

I doubt the problem is on my side, since nothing has changed on my computer - no changes in HD or SW...

Thanx for any hints/solutions.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [April 14, 2011, 4:44am UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/123 "2011-04-14T04:44:44Z")

</div>

The problem was a change in the discogs web site. Please download & install the new scripts from this topic and it should be fine.

---

<div class="post-metadata">

### Author: ![freoll](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/ce7236/32.png) [@freoll](https://community.mp3tag.de/u/freoll)
#### Post date: [April 18, 2011, 1:10pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/124 "2011-04-18T13:10:17Z")

</div>

Thanks for the updates. There is one minor flaw, in discogs-Release\_ID\_extended.src when there is no country noted in the tags at discogs, then the script fails at tag-lookup with .

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [April 18, 2011, 2:54pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/125 "2011-04-18T14:54:19Z")

</div>

Can you give me a release with no country?

---

<div class="post-metadata">

### Author: ![Rephlex](https://community.mp3tag.de/user_avatar/community.mp3tag.de/rephlex/32/315_2.png) [@Rephlex](https://community.mp3tag.de/u/Rephlex)
#### Post date: [April 18, 2011, 5:10pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/126 "2011-04-18T17:10:58Z")

</div>

Thanks again for the updates Dano!  
Working again... ![:music:](https://community.mp3tag.de/uploads/default/original/1X/2ba05d1ade5eb0d15fc173be6f717dbe63890a70.gif ":music:")

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [April 18, 2011, 7:23pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/127 "2011-04-18T19:23:41Z")

</div>

Another update, it should fix the no country problem and some other stuff.

---

<div class="post-metadata">

### Author: ![seam-splitter](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/e36b37/32.png) [@seam-splitter](https://community.mp3tag.de/u/seam-splitter)
#### Post date: [May 6, 2011, 6:06pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/128 "2011-05-06T18:06:24Z")

</div>

hello dano,

so sorry to bother you again, but the discogs-script makes problems again.  
it does not find the artist and song-titles.  
and an message appears in the style-field.  
could you please take a look?  
thanks so much!!!!

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [May 6, 2011, 6:20pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/129 "2011-05-06T18:20:20Z")

</div>

@dano:

replace

_findline "\>Tracklist"_

with

_findline "\>Tracklist"_

and it should work again. just updated my script.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [May 6, 2011, 8:40pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/130 "2011-05-06T20:40:44Z")

</div>

Thanks. Updated...

---

<div class="post-metadata">

### Author: ![Rhoobarb2005](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@Rhoobarb2005](https://community.mp3tag.de/u/Rhoobarb2005)
#### Post date: [June 21, 2011, 5:06pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/131 "2011-06-21T17:06:18Z")

</div>

Thanks for the working scripts again.

Is there any way to make DISCOGS\_CATALOG only show just the first catalogue ID?

i.e; for (%DISCOGS\_CATALOG%) to show

(disccat1)  
instead of;  
(disccat1, disccat2, disccat3, etc)

?

Many Thanks

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [June 23, 2011, 1:06pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/132 "2011-06-23T13:06:23Z")

</div>

Use this code for the catalog part:

```
# Catalog#:
outputto "Discogs_Catalog"
findline "class=\"head\">Catalog#:"
replace "</div>" ""
joinuntil "</div>"
regexpreplace ",.+(</div>)" "$1"
findinline "content\">"
sayuntil "</div>"
```

---

<div class="post-metadata">

### Author: ![Ke11ett](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/e8c25b/32.png) [@Ke11ett](https://community.mp3tag.de/u/Ke11ett)
#### Post date: [July 8, 2011, 12:26pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/133 "2011-07-08T12:26:10Z")

</div>

This doesn't work as I would expect when there is is two songs per track.

Example: [Andy C – Nightlife 5 - Drum & Bass](http://www.discogs.com/Andy-C-Nightlife-5-Drum-Bass/release/2472831)

> [@](#):
>
> 1-10a Konflict – Messiah  
> 1-10b Splash – Babylon

This source script thinks this is track 10 & 11 rather than both being track 10. So the script things this album is 4 tracks two long.

The way I tag these if doing it manually would be:  
**Track:** 10  
**Artist:** Konflict / Splash  
**Title:** Messiah / Babylon

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [July 8, 2011, 1:06pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/134 "2011-07-08T13:06:20Z")

</div>

> [@Ke11ett](#):
>
> This doesn't work as I would expect when there is is two songs per track.
> 
> Example: [Andy C – Nightlife 5 - Drum & Bass](http://www.discogs.com/Andy-C-Nightlife-5-Drum-Bass/release/2472831)
> 
> This source script thinks this is track 10 & 11 rather than both being track 10. So the script things this album is 4 tracks two long.
> 
> The way I tag these if doing it manually would be:  
> **Track:** 10  
> **Artist:** Konflict / Splash  
> **Title:** Messiah / Babylon

I have made an extra script for releases like that.  
It's called "tracklist for albums with multisong tracks" and it's in my discogs pone script bundle.  
You have to tag the album with a standard script first (from dano or one of mine) and use my script afterward.  
[/t/9226/1](https://community.mp3tag.de/t/9226/1)

EDIT:  
If you use dano's scripts, you have to use one of his extended scripts, because my "tracklist for albums with multisong tracks" script uses DISCOGS\_RELEASE\_ID for search.

Here is a little explanation of my "tracklist for albums with multisong tracks" script, with some example releaseses, and some others where it still fails to get the tracks right:  
[[WS] Discogs (pone mod)](https://community.mp3tag.de/t/9226/49)

---

<div class="post-metadata">

### Author: ![Rhoobarb2005](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@Rhoobarb2005](https://community.mp3tag.de/u/Rhoobarb2005)
#### Post date: [July 10, 2011, 6:49pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/135 "2011-07-10T18:49:13Z")

</div>

QUOTE (dano @ Jun 23 2011, 16:06) \<{POST\_SNAPBACK}\>

Use this code for the catalog part:

```
# Catalog#:
outputto "Discogs_Catalog"
findline "class=\"head\">Catalog#:"
replace "</div>" ""
joinuntil "</div>"
regexpreplace ",.+(</div>)" "$1"
findinline "content\">"
sayuntil "</div>"<!--QuoteEnd--></div><!--QuoteEEnd-->

```

Thanks for that, I sort of stumbled when it didnt work at first so I looked at the differences between the original and the code you put and noticed a bit was missing because the forums didnt like the syntax in the 'findline' line, so I rectified it and now it works like a charm.

No more super long filenames, thanks 😉

---

<div class="post-metadata">

### Author: ![C-Dog](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/c89c15/32.png) [@C-Dog](https://community.mp3tag.de/u/C-Dog)
#### Post date: [August 29, 2011, 6:48pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/136 "2011-08-29T18:48:02Z")

</div>

Discogs changed something again...

Does not work for example for "Aiera&release\_title=Skydive" ([http://www.discogs.com/Aiera-Skydive/release/3005672](http://www.discogs.com/Aiera-Skydive/release/3005672)).

```
Publisher: Blue Soho Recordings &ndash; BLS 039
Discogs_Catalog: <Error>

```

BLS 039 should be the catalog number.

Label and catalog number are now displayed in a row. Would be nice if the script was updated.

Thank you!

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [August 29, 2011, 9:49pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/137 "2011-08-29T21:49:39Z")

</div>

> [@C-Dog](#):
>
> Discogs changed something again...

That's how I solved it for my modificated script version:

 
# DISCOGS\_LABEL
 

outputto "publisher"  
findline "class="head"\>Label:"  
findline "\<div" 2 1  
joinuntil ""  
replace "|" "/"  
**regexpreplace " (\d{1,2})" ""    
regexpreplace "([^\>]\*), The( (\d{1,2}))?" "The $1"**  
regexpreplace "\s{2,}" " "  
regexpreplace "\<a href="/label/.+?"\>" "\<a href="/label/"\>"  
sayregexp "(?\<=\<a href="/label/"\>).+?(?=)" **"\\"**

 
# CATALOG
 

outputto "discogs\_catalog"  
sayregexp "(?\<= –).+?(?=(, \<a href=|))" **"\\"**

 

Comments:

 **regexpreplace " \(\d{1,2}\)" ""**  

use this only if you want to write labels which have the same name without the number in parentheses.  
e.g. for releases from this label: [http://www.discogs.com/label/Field+Records+%283%29](http://www.discogs.com/label/Field+Records+%283%29)

  

**regexpreplace "([^\>]\*), The( (\d{1,2}))?" "The $1"**

 use this only if you want to write "The Label" instead of "Label, The"

e.g. for releases from this label [http://www.discogs.com/label/Savant+Guard%2C+The](http://www.discogs.com/label/Savant+Guard%2C+The)

 **"\\\\"** use this only if you want to split multiple entries into multivalue tags. (additional saving necessary after running the script). If not, use ", " (or whatever you like) as sepeartor.

---

<div class="post-metadata">

### Author: ![brandon210](https://community.mp3tag.de/user_avatar/community.mp3tag.de/brandon210/32/7232_2.png) [@brandon210](https://community.mp3tag.de/u/brandon210)
#### Post date: [August 31, 2011, 8:49pm UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/138 "2011-08-31T20:49:11Z")

</div>

Also, the default 'discogs' script is pulling the full release date, not just the year. I don't mind that info, but I have 100GB of retagged files with just the year, so maybe if the full release date could be added to a different tag line.

In any event, if Dano could get this script updated, I'd really appreciate it...I use it daily.

---

<div class="post-metadata">

### Author: ![Rephlex](https://community.mp3tag.de/user_avatar/community.mp3tag.de/rephlex/32/315_2.png) [@Rephlex](https://community.mp3tag.de/u/Rephlex)
#### Post date: [September 4, 2011, 11:21am UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/139 "2011-09-04T11:21:19Z")

</div>

Taggin with the Discogs script gives an error. Seems like it's time for an update...

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [September 5, 2011, 5:22am UTC](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992/140 "2011-09-05T05:22:01Z")

</div>

Hi dano

Your updated script doesn't get proper results for releases which have more than one label and catalog#.  
Examples:  
[http://www.discogs.com/release/837614](http://www.discogs.com/release/837614)  
[http://www.discogs.com/release/51236](http://www.discogs.com/release/51236)

And it has a problem with releases by labels with a "|" in the name.  
Examples:  
[http://www.discogs.com/label/tanzbar|musik](http://www.discogs.com/label/tanzbar%7Cmusik)  
[http://www.discogs.com/label/tanzbar|digital](http://www.discogs.com/label/tanzbar%7Cdigital)

[Previous page](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992.md?page=6)

[Next page](https://community.mp3tag.de/t/ws-discogs-album-search-va/1992.md?page=8)
