Using the "naming" functionality to organize where ripped files go. Typically, artists go into their own directory (and albums in subdirectories of the artists.) However, if the artist name starts with "The " (such as "The Beatles"), I'd like the artist directory name to have the "The" following.
For example, instead of "/The Beatles/", I'd like to see "/Beatles, The/".
Here's what I've come up with, but it doesn't work:
[IF][SETLEN]4,,,[album artist][],=,The ,[GRAB]5,,[album artist], The[],[album artist][]
The problem is that the "comma" (after "[album artist]" and before " The[]") is being interpreted as a parameter delimiter for one of the functions. To better illustrate which comma, I'll show the same line using a dollar ($) sign in it's place:
[IF][SETLEN]4,,,[album artist][],=,The ,[GRAB]5,,[album artist]$ The[],[album artist][]
This, by the way, works (The result is "Beatles$ The")
How can I replace the "$" with a comma (and have it work?) Is there some way to escape a comma character?
Thanks
Gary
For example, instead of "/The Beatles/", I'd like to see "/Beatles, The/".
Here's what I've come up with, but it doesn't work:
[IF][SETLEN]4,,,[album artist][],=,The ,[GRAB]5,,[album artist], The[],[album artist][]
The problem is that the "comma" (after "[album artist]" and before " The[]") is being interpreted as a parameter delimiter for one of the functions. To better illustrate which comma, I'll show the same line using a dollar ($) sign in it's place:
[IF][SETLEN]4,,,[album artist][],=,The ,[GRAB]5,,[album artist]$ The[],[album artist][]
This, by the way, works (The result is "Beatles$ The")
How can I replace the "$" with a comma (and have it work?) Is there some way to escape a comma character?
Thanks
Gary
Comment