Help - Search - Members - Calendar
Full Version: Masstagger: how to delete space in title,artist, etc...
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
microdns
hi!

i am new here an my english is rather poor.

my question is: i want to rename my files using the "Rename, move or copy files" command.
with '%tracknumber%_%artist%_%title%' i get (for example) '01_Björk_Army Of Me'. here i want,
that all the space characters should go away, so that the following results: '01_Björk_ArmyOfMe'.

and the second question: if in the original filename the first letter of words is in small caps,
i want them to be in big caps.

so here is an example: the result of 'the universals _ new generation.mp3' should be '01_TheUniversals_NewGeneration.mp3'


how to do that , please can somebody help me?

thank you.

---
thuan
You should look at the title format help file coming with foobar. Anyway you can use this code:
CODE
$replace($caps2(%tracknumber%_%artist%_%title%),' ',)

Be careful though, if I recall correctly the $caps/$caps2 function doesn't work right with some less common unicode characters (there's a thread somewhere about this, use search please). Personally, I haven't use those functions much, so I'm not sure 100%.
microdns
QUOTE(thuan @ Jul 23 2007, 13:32) *

You should look at the title format help file coming with foobar. Anyway you can use this code:
CODE
$replace($caps2(%tracknumber%_%artist%_%title%),' ',)

Be careful though, if I recall correctly the $caps/$caps2 function doesn't work right with some less common unicode characters (there's a thread somewhere about this, use search please). Personally, I haven't use those functions much, so I'm not sure 100%.



wow!
thank you for the fast answer.

-

anyway, here is a solution, we made (a little bit confusing maybe) :

[$replace(%tracknumber%, ,,)_][$replace($caps($replace($caps(%artist%)$char(95),_, ,-, , , ,)), ,,)_][$replace($caps($replace($caps(%title%)$char(95),_, ,-, , , ,)), ,,)]

here the underscor, the minus and the doublespace will allways be converted to a single space. and then the funktion caps comes ...

-------------------------
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.