# Discogs images

**URL:** https://community.mp3tag.de/t/discogs-images/15459
**Category:** Web Sources Discussion
**Created:** [February 3, 2014, 8:01am UTC](https://community.mp3tag.de/t/discogs-images/15459 "2014-02-03T08:01:29Z")
**Posts on this page:** 4
**Page:** 2

<div class="post-metadata">

### Author: ![mp3taglover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/7feea3/32.png) [@mp3taglover](https://community.mp3tag.de/u/mp3taglover)
#### Post date: [May 9, 2015, 5:32pm UTC](https://community.mp3tag.de/t/discogs-images/15459/21 "2015-05-09T17:32:27Z")

</div>

QUOTE (Leftaf @ May 9 2015, 19:34) \<{POST\_SNAPBACK}\>

For testing following sample may help

Only One Image : [http://www.discogs.com/release/763523](http://www.discogs.com/release/763523)

Script

```
outputto "coverurl"
findinline "\"images\": [{\"uri\": " 1 1
if "\""
    movechar 1
    sayuntil "\""
endif

```

is working !

but

More than one Image : [http://www.discogs.com/release/1251208](http://www.discogs.com/release/1251208)

the original script

```
# Coverurl
outputto "coverurl"
json_foreach "images"
    json_select "type"
    if "primary"
        json_select "uri"
        say "http://cache.mp3tag.de/coxy"
        sayregexp "(?<=\.com).*"
        #sayrest
    endif
json_foreach_end

```

is only working

i've checked, and both of your releases are working fine in my scripts.

i'm using code i've published earlier.

---

<div class="post-metadata">

### Author: ![djeurotraxx](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/8e8cbc/32.png) [@djeurotraxx](https://community.mp3tag.de/u/djeurotraxx)
#### Post date: [January 22, 2016, 5:05pm UTC](https://community.mp3tag.de/t/discogs-images/15459/22 "2016-01-22T17:05:13Z")

</div>

I have not had luck with this work around, most likely I'm doing it wrong.

Is this correct?

```
# I N D E X
# ###################################################################
outputto "coverurl"
findinline "\"images\": [{\"uri\": " 1 1
if "\""
    movechar 1
    sayuntil "\""
endif

json "ON"

json_foreach "results"
.....

```

and

```
# Discogs_Release_ID
outputto "DISCOGS_RELEASE_ID"
json_select "id"
sayrest

# Coverurl

# Catalog Number
outputto "CATALOGID"
json_select_many "labels" "catno" ", "
sayrest
```

---

<div class="post-metadata">

### Author: ![mp3taglover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/7feea3/32.png) [@mp3taglover](https://community.mp3tag.de/u/mp3taglover)
#### Post date: [January 22, 2016, 5:18pm UTC](https://community.mp3tag.de/t/discogs-images/15459/23 "2016-01-22T17:18:39Z")

</div>

QUOTE (djeurotraxx @ Jan 22 2016, 21:05) \<{POST\_SNAPBACK}\>

I have not had luck with this work around, most likely I'm doing it wrong.

Is this correct?

```
# I N D E X
# ###################################################################
outputto "coverurl"
findinline "\"images\": [{\"uri\": " 1 1
if "\""
    movechar 1
    sayuntil "\""
endif

json "ON"

json_foreach "results"
.....

```

and

```
# Discogs_Release_ID
outputto "DISCOGS_RELEASE_ID"
json_select "id"
sayrest

# Coverurl

# Catalog Number
outputto "CATALOGID"
json_select_many "labels" "catno" ", "
sayrest<!--QuoteEnd--></div><!--QuoteEEnd-->

```

I believe it's a correct edit, however you can try script I'm using: [[WS] Discogs (pone mod)](https://community.mp3tag.de/t/9226/704) or just look into it's source and adjust yours accordingly. Script works just fine.

On first usage: mp3tag should redirect you to your browser to log-in to discogs and discogs will ask for API permissions for mp3tag app.

Without this action script won't work most likely, because discogs requires for API images usage to be logged-in in their API.

Also make sure you're using latest mp3tag version.

Do you get other release details in tagging window (except image)?

---

<div class="post-metadata">

### Author: ![djeurotraxx](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/8e8cbc/32.png) [@djeurotraxx](https://community.mp3tag.de/u/djeurotraxx)
#### Post date: [January 22, 2016, 6:50pm UTC](https://community.mp3tag.de/t/discogs-images/15459/24 "2016-01-22T18:50:09Z")

</div>

> [@mp3taglover](#):
>
> I believe it's a correct edit, however you can try script I'm using: [[WS] Discogs (pone mod)](https://community.mp3tag.de/t/9226/704) or just look into it's source and adjust yours accordingly. Script works just fine.
> 
> On first usage: mp3tag should redirect you to your browser to log-in to discogs and discogs will ask for API permissions for mp3tag app.
> 
> Without this action script won't work most likely, because discogs requires for API images usage to be logged-in in their API.
> 
> Also make sure you're using latest mp3tag version.
> 
> Do you get other release details in tagging window (except image)?

Thanks for your help! Made a few more edits using your script as a reference, re-logged in the discogs API, and now it works like a charm!

[Previous page](https://community.mp3tag.de/t/discogs-images/15459.md?page=1)
