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: 6639
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.84b



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: 858


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: 9021
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.84b



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 / quelle é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: 56
Joined: 4-December 10
Member No.: 13342
Mp3tag Version: 2.61d



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
ZipLock98
post Dec 4 2015, 17:46
Post #5


Member


Group: Full Members
Posts: 5
Joined: 6-January 15
Member No.: 20280
Mp3tag Version: v2.66



I just wanted to say I found this script very helpful! Thanks!
Go to the top of the page
 
+Quote Post
ZipLock98
post Dec 30 2015, 03:36
Post #6


Member


Group: Full Members
Posts: 5
Joined: 6-January 15
Member No.: 20280
Mp3tag Version: v2.66



So I'm having a slight problem with this script - it works for most of my albums but not all of them and I believe the issue is when the album field (or the directory since the directory mimics the album name) contains a special character like parenthesis "(", ")", it doesn't seem to do the trick. Is anybody else running into this issue?
Go to the top of the page
 
+Quote Post
DetlevD
post Dec 30 2015, 16:07
Post #7


Member


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



QUOTE (ZipLock98 @ Dec 30 2015, 03:36) *
So I'm having a slight problem with this script - it works for most of my albums but not all of them and I believe the issue is when the album field (or the directory since the directory mimics the album name) contains a special character like parenthesis "(", ")", it doesn't seem to do the trick. Is anybody else running into this issue?

The detected misbehaviour can be confirmed. It seems that all those characters are forbidden for the album name resp. the directory name, which have to be escaped within a Mp3tag regular expression (for example ( ) [ ] , .).
Thanks for the note!

DD.20151230.1610.CET

This post has been edited by DetlevD: Dec 30 2015, 16:10


--------------------
* 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
ZipLock98
post Dec 30 2015, 16:18
Post #8


Member


Group: Full Members
Posts: 5
Joined: 6-January 15
Member No.: 20280
Mp3tag Version: v2.66



Okay, I'm glad I'm not alone on this issue. Do you happen to know how to fix this? I don't have the slightly clue on how to edit your regular expressions.
Go to the top of the page
 
+Quote Post
DetlevD
post Dec 30 2015, 17:39
Post #9


Member


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



QUOTE (ZipLock98 @ Dec 30 2015, 16:18) *
... Do you happen to know how to fix this? ...

I am sorry to say ... oh no ... the end is open ... sometime next year perhaps.

DD.20151230.1739.CET


--------------------
* 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
Oolong
post Jun 3 2017, 01:09
Post #10


Member


Group: Full Members
Posts: 8
Joined: 30-May 17
Member No.: 23472
Mp3tag Version: v2.82



How do i run the export script?

do i add it into the tools.

or file export?
Go to the top of the page
 
+Quote Post
DetlevD
post Jun 3 2017, 06:17
Post #11


Member


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



How to install export configurations ... read there ...
http://forums.mp3tag.de/index.php?showtopic=1563

DD.20170703.0717.CEST


--------------------
* 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

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: 24th September 2017 - 06:07