# Need to determine missing track numbers from albums

**URL:** <https://community.mp3tag.de/t/need-to-determine-missing-track-numbers-from-albums/61084>\
**Category:** Support\
**Created:** [May 27, 2023, 3:48am UTC](https://community.mp3tag.de/t/need-to-determine-missing-track-numbers-from-albums/61084 "2023-05-27T03:48:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shu](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/e47c2d/32.png) [@Shu](https://community.mp3tag.de/u/Shu)\
**Post date:** [May 27, 2023, 3:48am UTC](https://community.mp3tag.de/t/need-to-determine-missing-track-numbers-from-albums/61084/1 "2023-05-27T03:48:54Z")

</div>

What would be the best way to determine missing track numbers when you have 1100 albums.  
An approach that looks at the highest track number for each album and then determines if all track numbers less than the max track number exist would be great.

---

<div class="post-metadata">

**Author:** ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)\
**Post date:** [May 27, 2023, 5:10am UTC](https://community.mp3tag.de/t/need-to-determine-missing-track-numbers-from-albums/61084/2 "2023-05-27T05:10:21Z")

</div>

There is no direct comparison of files from within mp3tag. There was a discussion some time ago with a potential way to try this. Maybe it can suit your needs.

> [@find out incomplete albums](https://community.mp3tag.de/t/find-out-incomplete-albums/16086/17):
>
> thx alot, i think now i got the point. but what's a bit of a trap is, that all top directories are also included in this list, i.e. a, b, c, d, ..... so this playlist makes mp3tag to load all subdirectories also but if i switch off subdirectories in the options then it works ..... 2morrow i'll check the rest, but for this, THANK YOU A LOT, i really know how much programming and debugging effort this must be. cheers p. ps. thx for adding the detailed description to the original post of yo…

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [May 27, 2023, 6:17am UTC](https://community.mp3tag.de/t/need-to-determine-missing-track-numbers-from-albums/61084/3 "2023-05-27T06:17:09Z")

</div>

> [@Shu](#):
>
> An approach that looks at the highest track number

If the total number is not saved somewhere, then counting simply the tracks will not be enough for all cases where the last file(s) of an album are missing.

---

<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:** [May 27, 2023, 9:04am UTC](https://community.mp3tag.de/t/need-to-determine-missing-track-numbers-from-albums/61084/4 "2023-05-27T09:04:36Z")

</div>

As @ohrenkino wrote:

Example situation:  
You have this tracks in your album folder called `\SuperAlbum`:

```auto
01 - First Track
02 - Second Track
04 - Fourth Track

```

You could then count the tracks per album and say:  
The last track is `04` so therefore 4 tracks should exists. But the count only give you 3 tracks. One track must be missing.

Why this doesn't work (for the same folder \SuperAlbum):

```auto
01 - First Track
02 - Second Track
03 - Third Track

```

You would count 3 tracks in this folder, where the last track says `03`. There is no way to see/count that the 4th track is missing.  
There could be even a 5th and more tracks missing.

---

<div class="post-metadata">

**Author:** ![Shu](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/e47c2d/32.png) [@Shu](https://community.mp3tag.de/u/Shu)\
**Post date:** [May 29, 2023, 11:06pm UTC](https://community.mp3tag.de/t/need-to-determine-missing-track-numbers-from-albums/61084/5 "2023-05-29T23:06:46Z")

</div>

I thank you for all the input and I decided the best approach was the eye/brain.  
It was not fun but my music is now organized and legit.

In the future I will examine each album before adding it to my library.

Years ago when I started collecting music I did not care about the integrity of my library (MP3 tag data, Album cover art).

---

<div class="post-metadata">

**Author:** ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)\
**Post date:** [May 29, 2023, 11:44pm UTC](https://community.mp3tag.de/t/need-to-determine-missing-track-numbers-from-albums/61084/6 "2023-05-29T23:44:59Z")

</div>

This is no different than probably most here. But now that you have it under control, it is far easier to maintain as your library grows. Even with the latest downloads from some of the most respectable sites, I find there are tags that haven’t been done to my personal standards. 🤓

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [June 28, 2023, 11:45pm UTC](https://community.mp3tag.de/t/need-to-determine-missing-track-numbers-from-albums/61084/7 "2023-06-28T23:45:54Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
