# \[WS\] MusicBrainz expanded

**URL:** <https://community.mp3tag.de/t/ws-musicbrainz-expanded/55909>\
**Category:** Web Sources Scripts\
**Created:** [January 15, 2022, 2:31pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-expanded/55909 "2022-01-15T14:31:34Z")\
**Posts on this page:** 1\
**Showing post:** 55

<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:** [August 25, 2025, 8:19am UTC](https://community.mp3tag.de/t/ws-musicbrainz-expanded/55909/55 "2025-08-25T08:19:34Z")

</div>

You want to add these 12 lines #987 until #998 to the script?

```auto
         # Start set TT"
        json_select "track-count"
            # Clear content for each loop
            set "MB_Media_TrackCount1"
            outputto "TT"
                    IfOutput "TT"
                    IfNot ""
                        say ";" # add a slash if current content is not empty and a new TT will be added
                    endif
                endif
                sayrest
         # End set TT"

```

To get this additional field `TT` in every track?

## ![image](https://community.mp3tag.de/uploads/default/original/3X/8/d/8de9fcfbd8fec2c94ea1ad04d692ebb8d2cd8c1b.png)

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

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

Would you mind if I rename the fieldname TT to something like `TOTALTRACKS_PER_MEDIUM`?

Just to be sure:  
You know that this number of total tracks already exists in the field `TRACK` after the slash?  
2/15 means second track of total 15 tracks.  
Combined with the existing `DISCNUMBER` 1/3 you know that this is the second track (of 15) on the first medium (of 3).

---

_[View the full topic](https://community.mp3tag.de/t/ws-musicbrainz-expanded/55909)._
