# \[WS\] Discogs ALL

**URL:** https://community.mp3tag.de/t/ws-discogs-all/8641
**Category:** Broken Web Sources
**Created:** [July 20, 2009, 6:31pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641 "2009-07-20T18:31:17Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Pufas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pufas/32/206_2.png) [@Pufas](https://community.mp3tag.de/u/Pufas)
#### Post date: [July 20, 2009, 6:31pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/1 "2009-07-20T18:31:17Z")

</div>

OK,  
I made this script long long time ago (~2 years or so), i never thought about publishing it but i find it very useful for me, so I decided to do it. I'm not a coder and I made it long time ago, so don't expect me fixing bugs or updating it. However it's pretty much complete (at least how I imagined it) and it works just fine for me.  
EDIT: I change my mind, I will try to develop it further.

The idea was to tag & rename large amounts of full releases (ablums, vinyls, ect.), extracting as much information as possible.

Fills these tags:

 BAND

```
BANDNAMEVARIATION
ARTIST
ARTISTNAMEVARIATION
ALBUM
TITLE
TRACK
VINYLNUMBER
TOTALTRACKS
DISCNUMBER
DISKNAME
TOTALDISCS / TOTALVINYLS
MEDIATYPE
RELEASETYPE
PUBLISHER
CATALOG
GENRE
STYLE
COUNTRY
YEAR (year only)
RELEASEDATE (full date)
RELEASETIME (not formated)
COMPILATION (Yes/No)
MIXARTIST (Remix)
COMPOSER
CREDITS
WWW
DISCOGSID
MASTERID
<!--sizec--></span><!--/sizec-->

```

 

Renames directory and files to something like

 

```
[CAT 001] Album Artist - Album (YEAR)
    00 Album Artist - Album (YEAR).m3u
    00 Album Artist - Album (YEAR).sfv
    00 Album Artist - Album (YEAR).txt
    A Track 1.mp3
    B Track 2.mp3

```

 

For Various Artist releases:

 

```
[CAT 001] Album Artist - Album (YEAR)
    00 Album Artist - Album (YEAR).m3u
    00 Album Artist - Album (YEAR).sfv
    00 Album Artist - Album (YEAR).txt
    01 Artist 1 - Track 1.mp3
    02 Artist 2 - Track 2.mp3

```

 

This script has a lot of fixes for discogs and extras, so that all you tags and files look alike.

 

**_How to use it?_**

 
1. Find your release at [www.discogs.com](http://www.discogs.com).

2. Copy it's id (i.e. [http://www.discogs.com/Age-Of-Love-The-Age.../release/116283](http://www.discogs.com/Age-Of-Love-The-Age-Of-Love/release/116283), you need 116283).

3. Drop your files to Mp3tag.

4. Delete all present tags (Not necessary anymore)

5. Run "Tag sources -\> Discogs\_xml\_all"

6. Paste id (search field sould be like this 116283)

7. Aplly tags.

8. Run actions:

 

[Discogs\_ALL\_API\_v2.09.zip](https://community.mp3tag.de/uploads/default/original/2X/3/3d657f57033248745f3cb626e48f38ba26aac783.zip) (7.84 KB)

---

<div class="post-metadata">

### Author: ![Andromedych](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@Andromedych](https://community.mp3tag.de/u/Andromedych)
#### Post date: [August 22, 2009, 8:01am UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/2 "2009-08-22T08:01:39Z")

</div>

Dear Pufas! Thanks a lot for Your great script. It has great possibilities. But I would like to know, how can I correct these lines when I get info from discogs

If in page of discogs I see:  
"Producer, Written-By - Markus Boehme , Martin Hensing"

but after using Your script it returns lines like this:

ByMarkus BoehmeProducerWritten ByMartin Hensing

How can I correct Your script to get needed line "Producer, Written-By - Markus Boehme , Martin Hensing" copied to COMPOSER line?

Also, Your script doesn't get an ARTWORK from discogs. How can I add it or can you improve it?

Thank You

---

<div class="post-metadata">

### Author: ![Aythamie](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/dc4da7/32.png) [@Aythamie](https://community.mp3tag.de/u/Aythamie)
#### Post date: [September 27, 2009, 5:51pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/3 "2009-09-27T17:51:19Z")

</div>

Hi, I'tje getting an error when it tries to load the DISCNUMBER.

Anyone esle having this problem?

---

<div class="post-metadata">

### Author: ![morrison](https://community.mp3tag.de/user_avatar/community.mp3tag.de/morrison/32/203_2.png) [@morrison](https://community.mp3tag.de/u/morrison)
#### Post date: [September 28, 2009, 3:50pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/4 "2009-09-28T15:50:18Z")

</div>

Thanks for you work Pufas, very impressive script

> [@Andromedych](#):
>
> Also, Your script doesn't get an ARTWORK from discogs. How can I add it or can you improve it?
> 
> Thank You

You can try add this code after # DISCOGSID section (next line after sayuntil """ ):

```
# Coverurl
outputto "coverurl"
findinline "\">"
if "<images>"
    findinline "uri=\""
    sayuntil "\" uri"
    findinline "</images>"
endif

```

UPDATE: more correct code

---

<div class="post-metadata">

### Author: ![Windjammer](https://community.mp3tag.de/user_avatar/community.mp3tag.de/windjammer/32/68_2.png) [@Windjammer](https://community.mp3tag.de/u/Windjammer)
#### Post date: [October 1, 2009, 8:17pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/5 "2009-10-01T20:17:28Z")

</div>

Dear Forum,

Agree with previous speakers that this is an amazing script rivaling Dano's masterpieces over the years. It's tragic it's not developed anymore. After the big Discogs Upgrade of their site I have 3 things not working

- Overall **Credits** don't come out at all
- **Track Credits** come out like this _CelloMatt McGeever_
- After adding the small **Cover Art** piece of the script I get a pic, but the wrong one

Anyone proficient enough to dig in to this scrip to see if it's fixable?

//Windjammer

---

<div class="post-metadata">

### Author: ![morrison](https://community.mp3tag.de/user_avatar/community.mp3tag.de/morrison/32/203_2.png) [@morrison](https://community.mp3tag.de/u/morrison)
#### Post date: [October 2, 2009, 7:57am UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/6 "2009-10-02T07:57:11Z")

</div>

I think I fixed most errors. Except for Credits (other) and regex action, unfortunately.  
I share the result if it is interesting community. I need a little more time to fine-tuning.  
Pufas script really very cool

> [@Windjammer](#):
>
> - **Track Credits** come out like this _CelloMatt McGeever_

I think you can use replace action for clean it.

replace CREDITS PER TRACK "" by ";"  
replace CREDITS PER TRACK "" by ", "  
replace CREDITS PER TRACK "" by ""  
replace CREDITS PER TRACK "" by ""

---

<div class="post-metadata">

### Author: ![morrison](https://community.mp3tag.de/user_avatar/community.mp3tag.de/morrison/32/203_2.png) [@morrison](https://community.mp3tag.de/u/morrison)
#### Post date: [October 2, 2009, 1:51pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/7 "2009-10-02T13:51:55Z")

</div>

test version in attach

I will replace some field and explain it later..

UPD: and actions file (use after script)

[Discogs\_xml\_all\_mod\_aa.src](https://community.mp3tag.de/uploads/default/original/2X/d/d37687fbff160df31e038f118cf5861e8e7b145d.src) (19.2 KB)

[Discogs\_xml\_all\_mod\_id.src](https://community.mp3tag.de/uploads/default/original/2X/b/b0709e3c9d6c7102e6a7fdd65cc25630ead5342c.src) (19 KB)

[Discogs\_XML\_mod.zip](https://community.mp3tag.de/uploads/default/original/2X/b/bee56a981d42d6e53b29208dc600d654af6bc68c.zip) (497 Bytes)

---

<div class="post-metadata">

### Author: ![Windjammer](https://community.mp3tag.de/user_avatar/community.mp3tag.de/windjammer/32/68_2.png) [@Windjammer](https://community.mp3tag.de/u/Windjammer)
#### Post date: [October 3, 2009, 3:31pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/8 "2009-10-03T15:31:06Z")

</div>

Great work morrison! Really like what you have done so far with the ID Search dialogue, the Cover Image and solving the LP problem with track numbers using letters (and not numbers).

Discovered that Dano's "Discogs by Release ID Extended"script (attached) brings in the Track Credits just fine. The original brought it into the "MixArtist"-field and I have changed that to bring it into the "Comments"-field instead which suits me better. I also placed the "Track Temp"-field in a "VinylNr."-field instead.

The structure of the script file seems to be very different than the one from Pufas so I don't know how much you can use, but since you seem to know more about scripting than me... The thing I haven't found anything to bring in to mp3tag is Over All Credits.

//Windjammer

2009-10-05  
Edited the "Track Temp"-field name again in Dano's script and called it "Vinyl Track" instead, like in the Pufas script.

[\__Discogs\_by\_Release\_ID\_Extended\_by\_Dano\_\_Modified_.src](https://community.mp3tag.de/uploads/default/original/2X/c/c49ee9cc6c7a39087d706f8b8a7c3198029d5434.src) (6.47 KB)

---

<div class="post-metadata">

### Author: ![morrison](https://community.mp3tag.de/user_avatar/community.mp3tag.de/morrison/32/203_2.png) [@morrison](https://community.mp3tag.de/u/morrison)
#### Post date: [October 5, 2009, 7:32pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/9 "2009-10-05T19:32:56Z")

</div>

Thanks for reply Windjammer, I will try do something with credits later

---

<div class="post-metadata">

### Author: ![Pufas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pufas/32/206_2.png) [@Pufas](https://community.mp3tag.de/u/Pufas)
#### Post date: [October 15, 2009, 7:19pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/10 "2009-10-15T19:19:32Z")

</div>

Wow. When I posted this script I never imagined people fix bugs and improve this script, so i "abandoned" this post. I see there is some progress here so maybe I will continue developing this script after all.

EDIT: I edited first post, read it for more info.

---

<div class="post-metadata">

### Author: ![Windjammer](https://community.mp3tag.de/user_avatar/community.mp3tag.de/windjammer/32/68_2.png) [@Windjammer](https://community.mp3tag.de/u/Windjammer)
#### Post date: [October 17, 2009, 10:08am UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/11 "2009-10-17T10:08:27Z")

</div>

Pufas,

Absolutely fantastic that you changed your mind! I cannot find your updated script? The .SRC file is still dated 2009-07-20 and the link to the ZIP above says 1.00...

---

<div class="post-metadata">

### Author: ![Pufas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pufas/32/206_2.png) [@Pufas](https://community.mp3tag.de/u/Pufas)
#### Post date: [October 17, 2009, 2:39pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/12 "2009-10-17T14:39:35Z")

</div>

Sorry, by mistake I've reuploaded old script. Try now. And remember you HAVE to run Discogs\_XML action to complete tagging!

---

<div class="post-metadata">

### Author: ![Innuendo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/898d66/32.png) [@Innuendo](https://community.mp3tag.de/u/Innuendo)
#### Post date: [October 17, 2009, 9:17pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/13 "2009-10-17T21:17:28Z")

</div>

> [@Pufas](#):
>
> Sorry, by mistake I've reuploaded old script. Try now. And remember you HAVE to run Discogs\_XML action to complete tagging!

This looks very, very nice. Thank you for your hard work.

The only two things that seem to be glaring omissions is that the script doesn't seem to grab album artwork & for the tracks I have tested the script on the track list window is empty so I can't move my selected track up and down to make sure it gets tagged properly, i.e. I had run the script against a song that was track 6 on the CD and there was no way to make the script understand it was not track 1.

Again, thank you for your work on this. It's obvious it was not an easy task.

---

<div class="post-metadata">

### Author: ![Pufas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pufas/32/206_2.png) [@Pufas](https://community.mp3tag.de/u/Pufas)
#### Post date: [October 18, 2009, 8:58am UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/14 "2009-10-18T08:58:29Z")

</div>

> [@Innuendo](#):
>
> This looks very, very nice. Thank you for your hard work.
> 
> The only two things that seem to be glaring omissions is that the script doesn't seem to grab album artwork & for the tracks I have tested the script on the track list window is empty so I can't move my selected track up and down to make sure it gets tagged properly, i.e. I had run the script against a song that was track 6 on the CD and there was no way to make the script understand it was not track 1.
> 
> Again, thank you for your work on this. It's obvious it was not an easy task.

1. Personaly I don't like storing art data inside mp3, but since a lot of users does, I will add it.
2. About that mess with tracknumbers: this was caused by saving tracknumber tag. It looks like mp3tag does not like that, and prefers counting files by himself. I guess I'll have to move vinyl track numbers to some other tag.

As soon as I'm done fixing I will upload new version.

---

<div class="post-metadata">

### Author: ![Pufas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pufas/32/206_2.png) [@Pufas](https://community.mp3tag.de/u/Pufas)
#### Post date: [October 18, 2009, 12:43pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/15 "2009-10-18T12:43:40Z")

</div>

I added cover grab, but fixing tracklist is a real headache. I keep getting very unexpected results while trying to tag [this](http://www.discogs.com/release/2796):

```
Total output:
 output["CurrentUrl"]= "http://www.discogs.com/release/2796?f=xml&api_key=1e48c7f4e4"
 output["CurrentPreview"]= "http://www.discogs.com/release/2796?f=xml&api_key=1e48c7f4e4"
 output["Output"]= ""
 output["DISCOGSID"]= "2796"
 output["COVERURL"]= "http://www.discogs.com/image/R-2796-1144684772.jpeg"
 output["BAND"]= "CJ Bolland"
 output["ALBUM"]= "DJ-Kicks"
 output["CATALOG"]= "!K7038CD"
 output["PUBLISHER"]= "Studio !K7"
 output["TOTALDISCS"]= "1"
 output["NOTES"]= ""
 output["TOTALTRACKS"]= "15"
 output["MEDIATYPE"]= "CD"
 output["RELEASETYPE"]= "Compilation, Mixed"
 output["GENRE"]= "Electronic"
 output["STYLE"]= "Techno, Acid"
 output["COUNTRY"]= "Germany"
 output["YEAR"]= "1995"
 output["RELEASEDATE"]= "September 4, 1995"
 output["DISCNUMBER"]= "1"
 output["TRACKS"]= "1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|"
 output["ARTIST"]= "Patrick Pulsinger|Damon Wild &amp; Tim Taylor|Joey Beltram|Magenta|Bandulu|Nexus 6|B.C.|Manuel And Clive|Planetary Assault Systems|Rotortype|Clementine|Sound Enforcer|Transits Of Tone|Planetary Assault Systems|Phrenetic System|"
 output["TITLE"]= "Construction Tool|Bang The Acid|Drome|Boost!|Presence|Ab-Chic (Acrid Abeyance Remix)|Stronghold|Recognised|In From The Night|Be Yourself|Breaking Point|Re-Enforcement|Stormer|Starway Ritual|Wayfarer|"
 output["DJMIX"]= "CJ Bolland, "
 output["TMP"]= ""
 output["COMPILED"]= "CJ Bolland, "
 output["TMPCR"]= "<role>Written By</role><name>Patrick Pulsinger</name>|<role>Written By</role><name>Damon Wild &amp; Tim Taylor</name>|<role>Written By</role><name>Joey Beltram</name>|<role>Written By</role><name>Cari Lekebusch</name>|<role>Written By</role><name>Bandulu</name>|<role>Remix [Uncredited]</role><name>Acrid Abeyance</name><role>Written By</role><name>E-Harmonix</name><role>Written By</role><name>Tom De Luxe</name>|<role>Written By</role><name>B.C.</name>|<role>Written By</role><name>Manuel And Clive</name>|<role>Written By</role><name>Luke Slater</name>|<role>Written By</role><name>Cari Lekebusch</name>|<role>Written By</role><name>Luke Slater</name>|<role>Written By</role><name>Dave Angel</name>|<role>Written By</role><name>Chris Hawkins</name><role>Written By</role><name>John Litchfield</name><role>Written By</role><name>Leigh Savage</name>|<role>Written By</role><name>Luke Slater</name>|<role>Written By</role><name>Axel Stephenson</name><role>Written By</role><name>Frederico Santini</name>|"
 output["Error"]= "<OK>"

```

Debug log says tags are fine but preview window messes everything up:

[![](http://img3.imageshack.us/img3/2240/clipboard02kq.th.jpg)](http://img3.imageshack.us/i/clipboard02kq.jpg/)

This happens when I edit line 332 from:

```
outputto "TRACK"

```

to:

```
outputto "TRACKS"

```

or add "TRACKS" tag anyhow.  
I believe we will need help from mp3tag developers.  
I attached latest version of my script in this post.  
EDIT: Removed - outdated script.

---

<div class="post-metadata">

### Author: ![Innuendo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/898d66/32.png) [@Innuendo](https://community.mp3tag.de/u/Innuendo)
#### Post date: [October 18, 2009, 12:48pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/16 "2009-10-18T12:48:24Z")

</div>

> [@Pufas](#):
>
> 1. Personaly I don't like storing art data inside mp3, but since a lot of users does, I will add it.

Don't feel like you need to add it on my account. I use a different program to get my album art as I like it to be certain sizes so the functionality is not that important to me. I was just making a comment on it.

> [@](#):
>
> 1. About that mess with tracknumbers: this was caused by saving tracknumber tag. It looks like mp3tag does not like that, and prefers counting files by himself. I guess I'll have to move vinyl track numbers to some other tag.

You'll think of a way, I'm sure. You're very clever. I don't think many other people have made the leap to writing tagging scripts that work in tandem with action scripts so that shows me you have more ingenuity than a lot of us.

All we need now is for Florian to add a way to invoke action scripts from within tagging scripts (and maybe vice versa) and there's no limits to what you'll be able to accomplish! 🙂

I'm really looking forward to seeing what you add next. It's always a pleasant surprise.

---

<div class="post-metadata">

### Author: ![Innuendo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/898d66/32.png) [@Innuendo](https://community.mp3tag.de/u/Innuendo)
#### Post date: [October 18, 2009, 12:53pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/17 "2009-10-18T12:53:18Z")

</div>

> [@Pufas](#):
>
> I believe we will need help from mp3tag developers.  
> I attached latest version of my script in this post.

Thanks for the quick turn-around! Maybe you could take a look at the other discogs scripts here in the forum? Or perhaps start up a conversation with Dano. He seems to be the other scripting genius here and he's got a Discogs script of his own so I am sure he could probably tell you where the problem is.

---

<div class="post-metadata">

### Author: ![Pufas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pufas/32/206_2.png) [@Pufas](https://community.mp3tag.de/u/Pufas)
#### Post date: [October 18, 2009, 2:48pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/18 "2009-10-18T14:48:08Z")

</div>

Yeah, I think I'll do that.

---

<div class="post-metadata">

### Author: ![Pufas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pufas/32/206_2.png) [@Pufas](https://community.mp3tag.de/u/Pufas)
#### Post date: [October 18, 2009, 5:02pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/19 "2009-10-18T17:02:00Z")

</div>

Thanks to Dano, everything seem to work now. I'll finish editing script and re-post it.

---

<div class="post-metadata">

### Author: ![Innuendo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/898d66/32.png) [@Innuendo](https://community.mp3tag.de/u/Innuendo)
#### Post date: [October 18, 2009, 5:34pm UTC](https://community.mp3tag.de/t/ws-discogs-all/8641/20 "2009-10-18T17:34:23Z")

</div>

Geez, Pufas...you're like a machine! Post a script, take two years off, and then return with a fury! LOL!

Thanks!

[Next page](https://community.mp3tag.de/t/ws-discogs-all/8641.md?page=2)
