HELP RENAME

All about user-defined episode / movie / file name format expressions
Post Reply
pcqd177
Posts: 4
Joined: 14 Aug 2017, 18:28

HELP RENAME

Post by pcqd177 »

Hi All,
Some help on renaming would be great. So I got a massive mp3 and flac collection that needed to be organise.
mp3 folder MP3\ folder genre\name of file artist - title
flac folder FLAC\ folder genre\name of file artist - title
already got the flac n mp3 sorted
Thanks
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: HELP RENAME

Post by kim »

you need to give e.g.
how are the folder/file named now ?
how do you want it to be ?
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: HELP RENAME

Post by kim »

you can try this:

Code: Select all

{ext == 'mp3' ? 'MP3' : 'FLAC'}/{any{genre}{media.genre}{'Unknown genre'}}/{artist} - {t}
or

Code: Select all

{ext == 'mp3' ? 'MP3' : 'FLAC'}/{any{media.genre}{'Unknown genre'}}/{media.Performer} - {media.title}
pcqd177
Posts: 4
Joined: 14 Aug 2017, 18:28

Re: HELP RENAME

Post by pcqd177 »

Hi thanks for replying so quick
both code is so close to what i want.
so my original setup up is just all my mp3 in 1 single folder and flac in another folder.
is there a way FB can auto sort it into genre type just like the movie format?

eg. folder MP3\auto sort genre folder\artist - title
MP3\rap\B.I.G - victory

ty
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: HELP RENAME

Post by rednoah »

I recommend processing files with MusicBrainz Picard first if they aren't properly tagged already.

Once files are tagged, you can easily process them with FileBot and move/rename them according to any of the available ID3 Tags.
:idea: Please read the FAQ and How to Request Help.
pcqd177
Posts: 4
Joined: 14 Aug 2017, 18:28

Re: HELP RENAME

Post by pcqd177 »

rednoah wrote: 15 Aug 2017, 06:22 I recommend processing files with MusicBrainz Picard first if they aren't properly tagged already.

Once files are tagged, you can easily process them with FileBot and move/rename them according to any of the available ID3 Tags.
hi i got musicbrainz already, about 98-99% of the files are tag i can make playlist out of them but would take too long to move the files around manually. Since Filebot worked so well for my movie collection, i though maybe it does wonder on my music collection as well, like movies filebot categorize into movie folder then by different genre and filename. Was wondering if it can do that to my music as well.

ty
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: HELP RENAME

Post by rednoah »

1.
Yes, as long as that information can be read from the ID3 tags, I see no reason why it wouldn't work out of the box.

@see viewtopic.php?f=5&t=4285


2.
Is there any specific problem you're struggling with?
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: HELP RENAME

Post by kim »

if you tried my formats you would see it does what you want ;)

viewtopic.php?f=3&t=2072

if file already has the info use:

Code: Select all

{ext == 'mp3' ? 'MP3' : 'FLAC'}/{any{media.genre}{'Unknown genre'}}/{media.Performer} - {media.title}
else:

Code: Select all

{ext == 'mp3' ? 'MP3' : 'FLAC'}/{any{genre}{media.genre}{'Unknown genre'}}/{artist} - {t}
if mp3 file = MP3/rap/B.I.G - victory
else = FLAC/rap/B.I.G - victory
no genre found = MP3/Unknown genre/B.I.G - victory
pcqd177
Posts: 4
Joined: 14 Aug 2017, 18:28

Re: HELP RENAME

Post by pcqd177 »

kim wrote: 15 Aug 2017, 11:39 if you tried my formats you would see it does what you want ;)

viewtopic.php?f=3&t=2072

if file already has the info use:

Code: Select all

{ext == 'mp3' ? 'MP3' : 'FLAC'}/{any{media.genre}{'Unknown genre'}}/{media.Performer} - {media.title}
else:

Code: Select all

{ext == 'mp3' ? 'MP3' : 'FLAC'}/{any{genre}{media.genre}{'Unknown genre'}}/{artist} - {t}
if mp3 file = MP3/rap/B.I.G - victory
else = FLAC/rap/B.I.G - victory
no genre found = MP3/Unknown genre/B.I.G - victory
Thankyou tried it on one of my full tag files and worked perfectly
thanks guys, you're all f*%king legends
RBCC
Posts: 118
Joined: 17 May 2016, 02:23

Re: HELP RENAME

Post by RBCC »

How Do I rename MASH -> M●A●S●H??
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: HELP RENAME

Post by rednoah »

Replace MASH -> M●A●S●H

Code: Select all

n.replace('MASH', 'M●A●S●H')
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: HELP RENAME

Post by kim »

Code: Select all

{n.replace('M*A*S*H', 'M●A●S●H')} - {s00e00} - {t.replace('M*A*S*H', 'M●A●S●H')}
https://www.thetvdb.com/?tab=series&id=70994&lid=7
Post Reply