is it possible to go throuth all the songs that belong to one album and count the tracks. If there is one track missing, i.e. if the total track number is not equal to the highest track number than that album must be incomplete.
How do you know the real number of tracks in an album?
Provided you have it ...
Copy all original tracknumbers to a user defined field e.g. tmp_track.
Sort all tracks first by tracknumber, then by album.
Now start the track numbering wizard with the option to reset the numbering per folder.
Then apply a filter that compares the two track fields:
$if($eql(%track%,%tmp_track%),1,0) IS 0
This should show all files where the new numbering does not match the original numbering - and the only explanation would be that there was a gap.
the field track contains the original number, but sometimes a track is missing in an album.
how can i automatically create a new field for every mp3 and number them automatically, not album per album but the whole collection at once?
The track numbering wizard is the only tool that has a reset per folder. This works for the whole collection as long as each album has its own folder.
So, to keep the original numbering, you have to copy it to the tmp-field as it would be lost otherwise.
After you have found the incomplete albums, you can copy the data back to the track field.
but after automatically nubering of all albums, how can i compare the tmp_track with track? and if not equal for all tracks set %complete_album% to 0 for all tracks else set to 0 for all tracks of this album.
all should run automatically.
Just for the moment ...
when you got the report file with such entry like this ...
... then copy the path string ...
into the "Directory" edit field within the Tag Panel [Ctrl+Q] and press [Enter].
Mp3tag loads the files from this folder.
Then you can run an action against the files to remove the tag %complete_album% or set the tag %complete_album% to 0.
This procedure has to be done for each detected folder in the report file.
To automate the tagging procedure for all detected folders at once, this is the next challenge.
that means i have first go through the mediathek manually?
honestly, i now think this is the safest way, because till now i realized there are some special cases albums where i have to manually update some information. so automatism would be nice, but i think it can never reach all cases.
btw. thanx a lot for your effort creating this really helpful export script.
amazing this script recognizes an incomplete album even if the last track number is equal to the number of availiable tracks, e.g. one is missing but another one comes twice ..... great work!!!
The following mte script creates a text file of type M3U8 playlist, which can be used by Mp3tag.
Note: Do not play or execute the m3u8 file, ...
but use Mp3tag to open the m3u8 file, ...
or "drag and drop" the m3u8 file onto the running Mp3tag application window.
Note: For usage in Mp3tag the given script text from above needs additional homework to do.
Select the given script text in the forum window and copy it to Windows Clipboard.
Open a text editor application and paste the Clipboard content into a new empty file.
Remove each line number "nn: " to align this code line at the left edge.
Save this Mp3tag export script into the Mp3tag folder for MTE files ...
==> "%APPDATA%\Mp3tag\export", ...
... write a descriptive file name ... e .g. "Export.PossibleMissingTrack.m3u8.mte"
Load one or more album folders, with or without correct track numbering, to test the functionality of the MTE script.
Choose "Export" from the Mp3tag File menu, select the MTE script and execute the script against the selected files.
At end of run there should exist a playlist text file on the Desktop with the name "MissingTrack.txt.m3u8".
You can open this m3u8 playlist textfile with any text editor to check the content.
If there has been detected possible missing tracks, then the playlist file contains one folderpath for each detected folder album.
If there are no folderpath entries, then all checked folder albums are good and you are ready ...
... otherwise go to the next step.
Open this new playlist file with Mp3tag.
Mp3tag will load all files from the given folderpathnames into the listview.
If the listview remains empty, then the playlist has no entry to be loaded.
No, not really.
the m3u8 file is just a playlist.
you can open it with a plain text editor to check the contents.
If there are no tracks in the playlist, then apparently the albums are not incomplete.
If there are tracks, check if you have applied a filter that finds no match in the files.