IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> [X] Tag - Filename bug with %discnumber% and %track% tags
peterj
post Apr 4 2017, 15:16
Post #1


Member


Group: Members
Posts: 3
Joined: 14-May 16
Member No.: 22113
Mp3tag Version: 2.77



Hi Florian, I've found a bug in v2.81 when Converting Tag - Filename with the %discnumber% and %track% tags.

Bug is this: if the discnumber is "1/2" and track number "1/12" for example, the tags convert to "12" and "112" respectively. What they should convert to is just the part before the slash, i.e. "1" and "1" respectively.
Go to the top of the page
 
+Quote Post
poster
post Apr 4 2017, 16:06
Post #2


Member


Group: Full Members
Posts: 1336
Joined: 22-March 09
Member No.: 9241
Mp3tag Version: 2.83e



ZITAT(peterj @ Apr 4 2017, 16:16) *
Bug is this: if the discnumber is "1/2" and track number "1/12" for example, the tags convert to "12" and "112" respectively. What they should convert to is just the part before the slash, i.e. "1" and "1" respectively.

Because the discnumber you have is 1/2 and the number of the track is 1/12 it would be a bug, if MP3Tag would only part of the content of this placeholder.
So it takes both, the part before and after the slash but without the slash because this character is not allowed in a windows-filename.

If you want the converter to take only the part before the slash you have to tell him so, for instance with a format-string like
$num(%track%,2) - %artist% - %title%

This post has been edited by poster: Apr 4 2017, 16:08
Go to the top of the page
 
+Quote Post
ohrenkino
post Apr 4 2017, 16:39
Post #3


Member


Group: Full Members
Posts: 8758
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.83e



ZITAT(poster @ Apr 4 2017, 17:06) *
... but without the slash because this character is not allowed in a windows-filename.
...
$num(%track%,2) - %artist% - %title%

Just an amendment: you could see that MP3tag really only left out the illegal character when you enclose the format string in a $validate() function, e.g.
$validate(%track% - %artist% - %title%,_)
where the illegal characters get replaced by an underscore.
This would even take care of the artist "AC/DC".

This post has been edited by ohrenkino: Apr 4 2017, 16:40


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
peterj
post Apr 8 2017, 05:44
Post #4


Member


Group: Members
Posts: 3
Joined: 14-May 16
Member No.: 22113
Mp3tag Version: 2.77



Hi Florian, please consider this a feature request, since other software such as Advanced Renamer can directly extract track "x" of "y" tracks when it shows as "x/y" in mp3tag.

For example, with Advanced Renamber I can use the simple expression "<ID3 Track> <ID3 Title>" to get a standard result like "01 Highway To Hell".

Cheers!
Go to the top of the page
 
+Quote Post
poster
post Apr 8 2017, 06:03
Post #5


Member


Group: Full Members
Posts: 1336
Joined: 22-March 09
Member No.: 9241
Mp3tag Version: 2.83e



ZITAT(peterj @ Apr 8 2017, 06:44) *
Hi Florian, please consider this a feature request, since other software such as Advanced Renamer can directly extract track "x" of "y" tracks when it shows as "x/y" in mp3tag.

For example, with Advanced Renamber I can use the simple expression "<ID3 Track> <ID3 Title>" to get a standard result like "01 Highway To Hell".

I personally would find it irritating and confusing if only for creating a filename Mp3Tag would treat especially the track-placeholder different from other placeholders or different from other treatments.
It also would not be possible to use the complete content of the placeholder anymore.

Therefore it would be nececcary to define a new placeholder get this stripped content directly and not the placeholder %track%.

This post has been edited by poster: Apr 8 2017, 06:04
Go to the top of the page
 
+Quote Post
ohrenkino
post Apr 8 2017, 08:22
Post #6


Member


Group: Full Members
Posts: 8758
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.83e



ZITAT(peterj @ Apr 8 2017, 06:44) *
Hi Florian, please consider this a feature request,... to get a standard result like "01 Highway To Hell".

Cheers!

If you are happy with that program: use it.
(I still wonder what that program does with "AC/DC").
The feature you request is already there - use the advice from user poster.

This post has been edited by ohrenkino: Apr 8 2017, 08:23


--------------------
42 - wie war die Frage / what was the question / quelle était la question
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: 28th July 2017 - 03:51