bennyboy371:
... Right now I have the issue ... to work on any tracks that have a slash in the album name, however. Everything else seems mostly fine. In the case of tracks with a backslash in the album name (in this case, Indie/Rock), it freaks out. ...
This example, for instance, should have stayed exactly the same as it was already how I wanted it:
"E:\Media\Music\Various Artists(2013) IndieRock Playlist April (2013)\001 - Tessa Rose Jackson - (All The) King's Horses.mp3" ->
"E:\Media\Music\Various Artists(2013) IndieRock Playlist April (2013)\E\Media\Music\Various Artists(2013) IndieRock Playlist April (2013)\001 - Tessa Rose Jackson - (All The) King's Horses.mp3"
As you can see, it appends "E\Media\Music" to its current directory rather than what was intended. ...
I doubt that the shown result string comes from the format string, ... because there is a text part doubled, which cannot be the result from your format string, so it will be a different error.
However ... there are forbidden characters for the filename, read there ...
Character remapping during conversion?
You can use one of the functions $replace or $regexp or $validate to replace forbidden characters with allowed character/s or remove them wholly.
Try out this format string ...
$validate ( ' E:\Media\Music\ ' $if2 ( %ALBUMARTIST% , %ARTIST% ) ' \ ' $if ( %ALBUM% , ' ( ' %YEAR% ' ) ' %ALBUM% , ' Misc Tracks ' ) ' \ ' $if ( %ALBUM% , [ $num ( %DISCNUMBER% , 2 ) ' - ' ] %TRACK% ' - ' , ) %ARTIST% ' - ' $if2 ( %TITLE% , ' [untitled] ' ) , ' ~ ' )
DD.20140522.2223.CEST