Discogs images

QUOTE (Leftaf @ May 9 2015, 19:34) <{POST_SNAPBACK}>
For testing following sample may help

Only One Image : 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

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.

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
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) 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!