Page 1 of 1

rename music {artist} without "Feat. artist_name"

Posted: 06 Jul 2015, 00:20
by elgallo
what 'm trying to do is use the album artist as the main folder and have the featured artist in the file name so

/path/to/music/2Pac/All Eyez On Me/2Pac feat. Snoop Doggy Dogg-All Eyez On Me-2 Of America's Most Wanted.mp3



this way all my 2pac (or another artist) stays organized by artist instead of
2Pac
2Pac feat. Snoop Doggy Dogg
2Pac feat. Dr. Dre
2Pac feat. KC & JoJo
2Pac feat. Nate Dogg
2Pac feat. ...
2Pac feat. ...
2Pac feat. ...

any help would be greatly appreciated

Re: rename music {artist} without "Feat. artist_name"

Posted: 06 Jul 2015, 05:23
by rednoah
Pick a test file. Go to the Format Editor and inspect all the available bindings.

Have you tried {n}?

Re: rename music {artist} without "Feat. artist_name"

Posted: 06 Jul 2015, 17:44
by elgallo
tried {n}, {albumArtist} and {media.Performer}
{n} gives same result as {artist}

{albumArtist} and {media.Performer} results in
{artist}/{album}/filename
or
{album}/filename


kind of hit or miss. none of the other binding are applicable to artist name.

Re: rename music {artist} without "Feat. artist_name"

Posted: 07 Jul 2015, 07:05
by rednoah
{n} is AlbumArtist if available, but default to Artist if AlbumArtist is not set. {media.Performer} is a MediaInfo binding, so it depends on the ID3 tags. If AlbumArtist is set in the tags you can probably get it via the MediaInfo bindings.

@see https://github.com/svn2github/filebot/b ... n.java#L93

But back to the OP, why not do something like this?

Code: Select all

{n.before(/feat/)}