Help - Search - Members - Calendar
Full Version: [X] Mp3tag omits "/" when converting (tags->filename)
Mp3tag Forums > Mp3tag - International > Bug Reports > No Bugs
wsdoud
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.
Mike_nl
QUOTE (wsdoud @ May 26 2011, 08:28) *
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.


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)
wsdoud
QUOTE (Mike_nl @ May 26 2011, 04:14) *
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)


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!
LosMintos
ZITAT(wsdoud @ Jun 6 2011, 16:19) *
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.


This is not recommended because of portability of such files.
Mike_nl
QUOTE (wsdoud @ Jun 6 2011, 21:19) *
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.



QUOTE (LosMintos @ Jun 7 2011, 18:31) *
This is not recommended because of portability of such files.


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.gif
pone
ZITAT(Mike_nl @ Jun 7 2011, 13:36) *
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.gif



You know the $validate function?

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

will make you expample to "Don Bigg - 16-05.mp3"
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-2014 Invision Power Services, Inc.