# Track count column in Discogs results?

**URL:** https://community.mp3tag.de/t/track-count-column-in-discogs-results/66459
**Category:** Web Sources Discussion
**Created:** [November 7, 2024, 3:24pm UTC](https://community.mp3tag.de/t/track-count-column-in-discogs-results/66459 "2024-11-07T15:24:47Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![make-nz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/make-nz/32/18236_2.png) [@make-nz](https://community.mp3tag.de/u/make-nz)
#### Post date: [November 22, 2024, 2:54pm UTC](https://community.mp3tag.de/t/track-count-column-in-discogs-results/66459/3 "2024-11-22T14:54:32Z")

</div>

Did some testing -- FVI: first time ever with WebSource scripts

This would be nice to have in my opinion, but it's not doable as far as I can tell:

 ![DISCOGS_Wish_TRACKTOTAL](https://community.mp3tag.de/uploads/default/original/3X/4/6/4627eef351018d5086effd2f163346423edb25c4.png)

Still, I like having the number of tracks on a disc inserted to my tags.  
FreeAC does this for me when I'm ripping CDs. It does count the tracks per disc and not per Album, of maybe 3 discs with 20 tracks each and that is howI like it!

Now, when playing with the Discogs API and the file (_\Roaming\Mp3tag\data\sources\Discogs.inc_) I have come to like what the Discogs API returns, **the number of tracks per Album**  
With an added script-block some where under Album:

```auto
# ###################################################################
# A L B U M
# ###################################################################

…

### TrackTotal
outputto "DISCOGS_-TEST-_TRACKTOTAL"
json_foreach "tracklist"
sayrest
json_foreach_end

```

the Album result now shows (it matched all my test with multi disc sets, too):

 ![DISCOGS_-TEST-_TRACKTOTAL](https://community.mp3tag.de/uploads/default/original/3X/2/4/241d81d6f83ba49f12049569ce4ee3b20ad8b27a.png)

In my setup I will allways use sub folders like Disc 1, Disc 2… and file names reflect that, too:

 ![DISCOGS_-TEST-_TRACKTOTAL2](https://community.mp3tag.de/uploads/default/original/3X/3/b/3bed097d5c69877afd57efce13b8cdeddd3a7473.png)

And with this I now have the total number of album tracks from Discogs and may notice a missing CD or missing files more easily in the log run.

Feel free to rename "outputto "_DISCOGS\_-TEST-\_TRACKTOTAL_" to your liking.  
(I will not overwrite my existing TRACKTOTAL tag from FreeAC)

Let me know if I missed something.  
Hope this helps.

---

_[View the full topic](https://community.mp3tag.de/t/track-count-column-in-discogs-results/66459)._
