[X] Mp3tag omits "/" when converting (tags->filename)


#1

I have an mp3 file whose title tag contains a slash character "/". When I use the convert function in mp3tag to rename the file based on its tags, it omits the "/". For example, if the title tag is "16/05" and the artist tag is "Don Bigg", after the conversion (%artist% - %title%), the filename comes out as "Don Bigg - 1605". Does anyone know why does that happen or how to avoid it?

Thank you beforehand.


#2

This is because the '/' is an illegal character in a filename.

http://msdn.microsoft.com/en-us/library/aa...v=vs.85%29.aspx

Use any character in the current code page for a name, including Unicode characters and characters in the extended character set (128–255), except for the following:

The following reserved characters:
    < (less than)
    > (greater than)
    : (colon)
    " (double quote)
    / (forward slash)
    \ (backslash)
    | (vertical bar or pipe)
    ? (question mark)
    * (asterisk)

#3

Oh OK!

In fact, I have Mp3tag installed on Mac OS X ('/' character is allowed in filenames) using Winebottler, so I guess I'd have to add the '/' manually.

Thanks!


#4

This is not recommended because of portability of such files.


#5

I concur with LosMintos, why don't you use a '-' (dash) instead ?

From 16/05 to 16-05 it doesn't looks that bad :wink:


#6

You know the $validate function?

$validate(%artist% - %title%,-)

will make you expample to "Don Bigg - 16-05.mp3"