MP3 Hit of 2010 - Help for my first try

Post any Bulk Rename Utility support requirements here. Open to all registered users.

MP3 Hit of 2010 - Help for my first try

Postby gparent » Thu May 06, 2010 3:47 am

Hi,
As a first user of this promissing utility, I have the following situation :
I created folders containing 200 top songs ever.
My stucture is :

Top 200 songs
SEQ Author Year
Author - Song name.MP3
Author - Cover.jpg
002 Autho Year
...
...

Where SEQ goes from 001 to 200, Year from 1900 to 2010

Using Media Monkey I realized that I lost some important information looking at the playlist.
I would to change the structure of my 200 songs so I can see SEQ and Year.
Here is an example :

Original format :
Top 200 songs
001Cat Stevens 1971
Cat Stevens - Wild World.mp3
Cat Stevens - Greatest Hits.jpg
...

BRU should rename like this :

Top 200
001 Cat Stevens 1971
Cat Stevens 001-1971 - Wild World.mp3
Cat Stevens - Greatest Hits.jpg
...

Can someone help ?

Thanks in advance.

GMP
gparent
 
Posts: 3
Joined: Thu May 06, 2010 3:04 am

Re: MP3 Hit of 2010 - Help for my first try

Postby Stefan » Thu May 06, 2010 11:18 am

gparent wrote:Hi,
As a first user of this promissing utility, I have the following situation :
I created folders containing 200 top songs ever.
My stucture is :

Top 200 songs
SEQ Author Year
Author - Song name.MP3
Author - Cover.jpg
002 Autho Year
...
...

Where SEQ goes from 001 to 200, Year from 1900 to 2010

Using Media Monkey I realized that I lost some important information looking at the playlist.
I would to change the structure of my 200 songs so I can see SEQ and Year.
Here is an example :

Original format :
Top 200 songs
001Cat Stevens 1971
Cat Stevens - Wild World.mp3
Cat Stevens - Greatest Hits.jpg
...

BRU should rename like this :

Top 200
001 Cat Stevens 1971
Cat Stevens 001-1971 - Wild World.mp3
Cat Stevens - Greatest Hits.jpg
...

Can someone help ?

Thanks in advance.

GMP

Hi GMP welcome.

I don't know if i understood correctly.

You have this:
X:\Top 200 songs\001Cat Stevens 1971\Cat Stevens - Wild World.mp3
X:\Top 200 songs\001Cat Stevens 1971\Cat Stevens - Greatest Hits.jpg

And you want to get this:
X:\Top 200\001 Cat Stevens 1971\Cat Stevens 001-1971 - Wild World.mp3
X:\Top 200\001 Cat Stevens 1971\Cat Stevens - Greatest Hits.jpg

That's renaming the song file
from <author> - <title>.mp3
to... <author> <seq>-<year> - <title>.mp3
taking the <seq>-<year> info from the parent folder?

The *.jpg is not relevant here and leaved as it is.

I think such is hard to do with BRU.
Or i am completely wrong what you want.
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Re: MP3 Hit of 2010 - Help for my first try

Postby gparent » Thu May 06, 2010 7:20 pm

Hi Stefan,
Thanks for your reply.
Your understanding is exactly what I want to do.
No wonder I spent so much time on this puzzle.
I now know that I will rename my files the long way.
Obviously I started with a real complex situation.

GMP
gparent
 
Posts: 3
Joined: Thu May 06, 2010 3:04 am

Re: MP3 Hit of 2010 - Help for my first try

Postby Stefan » Thu May 06, 2010 9:03 pm

gparent wrote:Hi Stefan,
Thanks for your reply.
Your understanding is exactly what I want to do.


O.K., lets try:

Our rules are:
* all your file names are as your examples, one dash only, and no digits.
* Copy a few folders to C:\Temp and use this for first tests of the following.
* In BRU select a few "Name" to see changes on the "New Name"


FROM:
X:\Top 200 songs\001Cat Stevens 1971\Cat Stevens - Wild World.mp3
TO:
X:\Top 200\001 Cat Stevens 1971\Cat Stevens 001-1971 - Wild World.mp3

---------------------------------------

Step 1:

You have:
X:\Top 200 songs\001Cat Stevens 1971\Cat Stevens - Wild World.mp3

Append Folder Name (9)
Name: Prefix
Sep: #
[Rename]

You get:
X:\Top 200 songs\001Cat Stevens 1971\001Cat Stevens 1971#Cat Stevens - Wild World.mp3


---------------------------------------


Step 2:

You have:
X:\Top 200 songs\001Cat Stevens 1971\001Cat Stevens 1971#Cat Stevens - Wild World.mp3

Reset rule (9) to none

RegEx(1)
Match: (.+)#.+-(.+)
Repla: \1 - \2
[Rename]

You get:
X:\Top 200 songs\001Cat Stevens 1971\001Cat Stevens 1971 - Wild World.mp3

Explanation:
"(...)" are capture groups which holds what is matched by the regex inside of the (...) parentheses, and can be accessed by using \1 -signs.

(.+) -> match one-or-more of any sign till #, so \1 will hold "001Cat Stevens 1971"
#.+- -> match #-sign followed by one-or-more of any sign till an blank followed by an dash, so this will match "#Cat Stevens - "
(.+) -> \2 will hold "Wild World"

At the end we build the new name by using that what is matched by the regex inside the parentheses, and dropping the middle part.

See the two oldest posts in the regex sub-forum for an overview over the regex syntax.


---------------------------------------


Step 3:

You have:
X:\Top 200 songs\001Cat Stevens 1971\001Cat Stevens 1971 - Wild World.mp3

RegEx(1)
Match: (\d\d\d)(.+) (\d\d\d\d.+)
Repla: \2 \1-\3
[Rename]

You get:
X:\Top 200 songs\001Cat Stevens 1971\Cat Stevens 001-1971 - Wild World.mp3

Explanation:
(\d\d\d) -> match three digits, so \1 will hold "001"
(.+) -> match one-or-more of any sign till an space followed by four digits, so \2 will hold "Cat Stevens"
(\d\d\d\d.+) -> match an space followed by four digits followed by one-or-more of any sign till the end, so \3 will hold " 1971 - Wild World"

We build our new name by reorder the matches in the replace field: \2 \1 \3
and insert an additional dash between \1 and \3


---------------------------------------


Step 4:
Go to Windows Explorer and
rename
"X:\Top 200 songs"
to
"X:\Top 200"




HTH? :D
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Re: MP3 Hit of 2010 - Help for my first try

Postby gparent » Fri May 07, 2010 12:33 am

Stefan,
WOW.
As I can see, you had fun with my puzzle.
Let me analyse your solution.

Again, I appreciate your effort and, mainly, your talent .

Honnestly, I must say I am very impressed!!!

Regards,

GMP
gparent
 
Posts: 3
Joined: Thu May 06, 2010 3:04 am


Return to BRU Support