rename music {artist} without "Feat. artist_name"

Any questions? Need some help?
Post Reply
elgallo
Posts: 40
Joined: 29 Apr 2014, 10:33

rename music {artist} without "Feat. artist_name"

Post 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
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah »

Pick a test file. Go to the Format Editor and inspect all the available bindings.

Have you tried {n}?
:idea: Please read the FAQ and How to Request Help.
elgallo
Posts: 40
Joined: 29 Apr 2014, 10:33

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

Post 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.
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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/)}
:idea: Please read the FAQ and How to Request Help.
Post Reply