» Welcome Guest
[ Log In :: Register ]

 

[ Track this topic :: Email this topic :: Print this topic ]

Topic: Trimming trackno.< Next Oldest | Next Newest >
Filippas
Board Fan



Group: Members
Posts: 22
Joined: Nov. 2002
Posted: May 22 2006,14:53

Hi,

How is it possible to trim a part of the <title> field.

For example.

Sometimes when I rename mp3 files the tracknumber is in the titel field eg 01 titletrack. I want to trim the 3 positions from the left so the doubble tracknumber and the space are trimed.

Is this possible?  Thankx
Back to top
Profile PM 
calberga
Ancient Board Spirit



Group: Awaiting Authorisation
Posts: 254
Joined: Oct. 2002
Posted: May 24 2006,14:20

Since Magnus hasn't replied (I wonder if the software is again failing to show him new post?) I'll give you my solutions.  Note that Magnus almost certianly has a better way, but these should work, if I understand the problem.

First, your description of the problem is a bit vague (to me, at least).  I can think of two possible interpetations.

1).

You have a title tag which starts with the track number, followed by the actual title, and you want to name the file with the title alone.  I.e., if the title tag has a value of "03 June Moon", you want the file to be named "June Moon.mp3".  
[I find this odd, but it is one way of understanding your question.]

The simplest way I can think of:

a) Go ahead and do a simple "Auto rename (from tags)", with the template "<Title>.mp3" (note that the " are not part of the template, but are here used to delimit the template (and other set phrases, such as the tab names) form the rest of the text).

You now have files with names such as "03 June Moon.mp3".

b) Use the "Direct Rename Files" tab, with the "Advanced mode" box checked.  Set the "Expected file name format" template to "<TRASH> <Custom1>.mp3" and the "Output file name format" template to "<Custom1>.mp3" and execute.  This will strip off any characters before the first space in the file name, along with that space, leaving the example file with a name of "June Moon.mp3"

2).

You wish to remove the track number from the Title tag, leaving the file names with the leading track number.  [This makes more sense, as it will have the files sorted by track number, and many of the PC players will normally play them in that order, although some can be set to use the TrackNr tag to order the play list.  At least, it is the way I tag and name my files.]

a) Again, start by using the "Autorename.." tab with the template "<Title>.mp3".

b) Now, use the "Auto tag (from file names)" tab with the template "<TRASH> <Title>.mp3".  This (in a way similar to the "Direct rename" in case 1) will strip the first space and anything preceeding it from the filename and set the Title tag to the remaining string.  Note, this stripping of the leading substring does not affect the filename itself, it only determines which part of the file name is used to set the Title tag.

I hope one of my conjectures as to your desired action is correct.  If I have totally misunderstood your question, please set me straight, and I will try to cook up an answer to the real question.

Edited by calberga on May 24 2006,14:20
Back to top
Profile PM 
Filippas
Board Fan



Group: Members
Posts: 22
Joined: Nov. 2002
Posted: May 24 2006,16:46

Thanks. That's what I was looking for. I'll give it a try and see what happens when I encounter this type of taging.

Again, thanks.
Back to top
Profile PM 
calberga
Ancient Board Spirit



Group: Awaiting Authorisation
Posts: 254
Joined: Oct. 2002
Posted: May 24 2006,16:53

No problem, glad to be of some help (if it works).  If it doesn't work, complaints accepted, and I'll try again.

I do wish the Almighty Author was around, I feel sort of silly trying to answer things (and usually when Magnus turns up he points out better ways than I've thought up).

Again, you are welcome.

Edited by calberga on May 25 2006,00:57
Back to top
Profile PM 
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: May 25 2006,00:26

Thanks for the assist calberga (very good solutions too btw :)).

You should never feel silly to answer other people's questions around here, actually I'll do anything to encourage this kind of behavior, that's one of the main advantages of having a board like this!

I'm always grateful for your assistance, so please keep it up! :praise:

--------------
Software author and website owner
Back to top
Profile PM WEB 
calberga
Ancient Board Spirit



Group: Awaiting Authorisation
Posts: 254
Joined: Oct. 2002
Posted: May 25 2006,00:58

Just a little busy body -- with a bit of ego involvement, so thanks for the complement.

Cyril
Back to top
Profile PM 
Filippas
Board Fan



Group: Members
Posts: 22
Joined: Nov. 2002
Posted: May 26 2006,14:18

Guys,

I encounterd the tagging described. I implemented your solution and it worked like a charm.

Thanks for the solution, again.  :D
Back to top
Profile PM 
6 replies since May 22 2006,14:53 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]