# How to get more "codes" from discogs' "Barcode and other Identifiers"

**URL:** https://community.mp3tag.de/t/how-to-get-more-codes-from-discogs-barcode-and-other-identifiers/71946
**Category:** Support
**Created:** [October 11, 2026, 8:21am UTC](https://community.mp3tag.de/t/how-to-get-more-codes-from-discogs-barcode-and-other-identifiers/71946 "2026-10-11T08:21:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ZankFrappa](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/f05b48/32.png) [@ZankFrappa](https://community.mp3tag.de/u/ZankFrappa)
#### Post date: [October 11, 2026, 8:21am UTC](https://community.mp3tag.de/t/how-to-get-more-codes-from-discogs-barcode-and-other-identifiers/71946/1 "2026-10-11T08:21:37Z")

</div>

Hello Community,

i'd like to get more than just the "Barcode" from discogs' "Barcode and other Identifiers" (Label Code, SPARS Code, ...) and be written into a multiline Tag Field. With the help of AI and after many trials and **errors** , i modified the "Discogs Release ID.src" as follows:

# Barcode

outputto "BARCODE"  
json\_foreach "identifiers"  
json\_select "type"  
if "Barcode"  
json\_select "value"  
ifnotoutput "BARCODE"  
outputto "BARCODE"  
say "Barcode: "  
sayrest  
else  
outputto "BARCODE"  
say "; "  
sayrest  
endif  
endif  
json\_foreach\_end

# Label Code

outputto "BARCODE"  
json\_foreach "identifiers"  
json\_select "type"  
if "Label Code"  
json\_select "value"  
ifnotoutput "LABEL CODE"  
endif  
endif  
json\_foreach\_end

# SPARS Code

outputto "BARCODE"  
json\_foreach "identifiers"  
json\_select "type"  
if "SPARS Code"  
json\_select "value"  
ifnotoutput "SPARS Code"  
sayrest  
endif  
endif  
json\_foreach\_end

The result is:

Barcode: xxx...Label Code: xxx...SPARS Code: xxx...

But I want it to look like this:

Barcode: xxx...

Label Code: xxx...

SPARS Code: xxx...

in other words, how to create a **new line** for each code/identifier?

Is this possible?

Thanks in advance and above all thanks to Florian Heidenreich for (t)his simply amazing app.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [October 11, 2026, 9:24am UTC](https://community.mp3tag.de/t/how-to-get-more-codes-from-discogs-barcode-and-other-identifiers/71946/2 "2026-10-11T09:24:08Z")

</div>

Are you looking for something like [`SayNewline`](https://docs.mp3tag.de/tag-sources/development/)?

 ![image](https://community.mp3tag.de/uploads/default/original/3X/a/2/a24070713837a7cb5b899f226604319d2fdbb00a.png)

---

<div class="post-metadata">

### Author: ![ZankFrappa](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/f05b48/32.png) [@ZankFrappa](https://community.mp3tag.de/u/ZankFrappa)
#### Post date: [October 11, 2026, 8:30pm UTC](https://community.mp3tag.de/t/how-to-get-more-codes-from-discogs-barcode-and-other-identifiers/71946/3 "2026-10-11T20:30:02Z")

</div>

Thanks for your quick respons, but as long as i don't know where to place "saynewline" in the code above....

---

<div class="post-metadata">

### Author: ![ZankFrappa](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/f05b48/32.png) [@ZankFrappa](https://community.mp3tag.de/u/ZankFrappa)
#### Post date: [October 11, 2026, 8:57pm UTC](https://community.mp3tag.de/t/how-to-get-more-codes-from-discogs-barcode-and-other-identifiers/71946/4 "2026-10-11T20:57:38Z")

</div>

Got it. The .src now looks like this:

> # Barcode
> 
> outputto "BARCODE"  
> json\_foreach "identifiers"  
> json\_select "type"  
> if "Barcode"  
> json\_select "value"  
> ifnotoutput "BARCODE"  
> outputto "BARCODE"  
> say "Barcode: "  
> sayrest  
> else  
> outputto "BARCODE"  
> say "; "  
> sayrest  
> endif  
> saynewline  
> endif  
> json\_foreach\_end
> 
> # Label Code
> 
> outputto "BARCODE"  
> json\_foreach "identifiers"  
> json\_select "type"  
> if "Label Code"  
> json\_select "value"  
> ifnotoutput "LABEL CODE"  
> endif  
> saynewline  
> endif  
> json\_foreach\_end
> 
> # SPARS Code
> 
> outputto "BARCODE"  
> json\_foreach "identifiers"  
> json\_select "type"  
> if "SPARS Code"  
> json\_select "value"  
> ifnotoutput "SPARS Code"  
> sayrest  
> endif  
> saynewline  
> endif  
> json\_foreach\_end

which is exactly what i wanted.

LyricsLover, you made my day.
