Subject: | audio_rename - Slashes in tags used literally in filenames |
Date: | Sun, 23 Nov 2008 09:55:44 -0600 |
To: | bug-MP3-Tag [...] rt.cpan.org |
From: | Richard Thomas <rich [...] dicksonlife.com> |
System: Linux
If a tag has slashes in it, when the filename is constructed, the slash
is included, leading to strange directory structures. For example,
Artist: AC/DC
Album: Back in Black
Track: You Shook Me All Light Long
%a/%l/%a - %t
AC/DC/Back in Black/AC/DC - You Shook Me All Night Long
AC
+DC
+Back in Black
+AC
+DC - You Shook Me All Night Long
Since the components of the filename are dealt with on a piece-by-piece
basis, the trivial fix is to replace the slashes with another character.
This should probably *not* be part of the "Converting exotic characters"
routine but should likely be a separate option, perhaps with a generic
"replace these characters with those characters" fully specifiable tr()
type option