IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How to set TOTALDISCS and TOTALTRACKS?, Export and Action to get total values of tracks and discs.
DetlevD
post Dec 1 2011, 19:53
Post #1


Member


Group: Full Members
Posts: 4129
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.54



Sometimes there is the need to enumerate a large amount of files, which relate to different data media, e.g. album with 27 files stored on three CDs. It would be helpful to have a tag-field, automatically created into the track file, which holds the total amount of discs per album.

Today Mp3tag has no readymade built-in support for this purpose, but we are not lost at all.
We can use the Mp3tag services "export" and "actions" to proceed the enumeration automatically, to get the total values of tracks and discs, on a per album basis.

Workflow

1. Start Mp3tag and load the files to work with.
The user must have write access to the folders and files. Files resp. their attributes must be set as writable.
While the enumeration is running, the files get new tag-fields, which afterwards will be removed immediately by the action group. All files must have already set the tag-field DISCNUMBER to the corresponding physical disc number!

2. Select all files from one album or from more albums.

3. Run the export script “Export TXT Totaldiscs Totaltracks”.
This will create the text file on the desktop: “Mp3tag.Export.txt”.
Do not change the content of this file in any way!
At end of the entire process, delete this file.
This text file provides the input data for the following Mp3tag action script.

4. Run the action group “Set Totaldiscs (run export script before!)”.
This group of actions will create one tag-field TOTALDISCS.
Alternatively run the action group “Set Totaldiscs Totaltracks (run export script before!)”.
This group of actions will create two tag-fields TOTALDISCS and TOTALTRACKS.
This overwrites all existing values in these tag-fields.
Be aware of not destroying the content of the tag-field TOTALTRACKS, when you have set
the value by other personal rules, for example:
You have an album with 10 tracks overall, from which you have only 5 tracks on your disk, but you did set manually the tag-field TOTALTRACKS to the value 10 to be in order with the complete album. By executing this group of actions the tag-field TOTALTRACKS will be set to the number of the counted physical existing files, that gives the value 5.

5. View the result within dialog “Extended tags…” … or … display %TOTALDISCS% within a dedicated column in the list view.

6. Remove the file “Mp3tag.Export.txt” from desktop.

7. Ready.

Note:
I did not verify this first attempt in full scope, so please feel free to report your experiences!

Download the attached zip file, which contains ...
Manual, MTE export script, MTA action groups, Test folder tree.
v1.00, Mp3tag.HowToSetTotalDiscs.zip ( 142.4K ) Number of downloads: 5
v1.01, Mp3tag.HowToSetTotalDiscs.zip ( 107.61K ) Number of downloads: 2
v1.02, Attached File  Mp3tag.HowToSetTotalDiscs.102.zip ( 110.33K ) Number of downloads: 176


DD.20111201.1954.CET
Edit. DD.20111201.1050.CET
Edit. DD.20111205.1812.CET

This post has been edited by DetlevD: Dec 5 2011, 18:12


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
feksteen
post Dec 9 2011, 10:18
Post #2


Member


Group: Full Members
Posts: 6
Joined: 12-October 09
Member No.: 11085
Mp3tag Version: 2.52



Thank you, I have actually been wondering about this for a while. If I understand this correctly, two new tags are created.
I have seen that in iTunes this information already exists, and so why is it necessary to create new tags? or does iTunes manipulate the information differently (I have seen that sometimes Tracknumbers are displayed as e.g. 4/13 when loading into mp3Tag.)
In any event, I am glad about your post and that a solution exists. biggrin.gif rolleyes.gif
Go to the top of the page
 
+Quote Post
ohrenkino
post Dec 9 2011, 10:22
Post #3


Member


Group: Full Members
Posts: 3162
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.55a



ZITAT(feksteen @ Dec 9 2011, 10:18) *
Thank you, I have actually been wondering about this for a while. If I understand this correctly, two new tags are created.
I have seen that in iTunes this information already exists, and so why is it necessary to create new tags? or does iTunes manipulate the information differently (I have seen that sometimes Tracknumbers are displayed as e.g. 4/13 when loading into mp3Tag.)
In any event, I am glad about your post and that a solution exists. biggrin.gif rolleyes.gif

iTunes does not generate this information from scratch but reads that what is there.
DetlevD's script helps you to get this information initially so that iTunes can display it, too.
Also, the additional tag fields are, as DetlevD described, only included temporarily while the numbering is on the way, and are removed afterwards.


--------------------
42 - wie war die Frage / what was the question / comment était la question
Go to the top of the page
 
+Quote Post
rungumprun
post Jan 26 2012, 00:26
Post #4


Member


Group: Full Members
Posts: 52
Joined: 4-December 10
Member No.: 13342
Mp3tag Version: 2.53



I just found this, and it's very slick! As I look at the details of how it works, I'd like to be clear on what tags need to be complete and accurate before using this.

I think I must have album and discnumber tags complete and accurate for all selected tracks, keeping in mind that if there is no DISCNUMBER tag, then this action group will assume the correct DISCNUMBER value should be 1.

Is my understanding accurate? thanks!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd May 2013 - 21:01