Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (***NEW HOME PAGE*** "http://pfrank.atwebpages.com")
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem swapping parts of MP3 files

 
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> General Support
View previous topic :: View next topic  
Author Message
J-J



Joined: 28 Aug 2010
Posts: 4

PostPosted: Sat Aug 28, 2010 5:40 pm    Post subject: Problem swapping parts of MP3 files Reply with quote

Hi,
I found a great application that searches online for Id3Tag's for MP3's (TagRunner). Problem is that my filenames have a bad construction. Tagrunner can only search for information when the artist name is clearly separated in the filename (Artist - Title.mp3) and not for exemple 'Artist ft. 2ndArtist - Title.mp3'. The program will say that the artist wasn't found.
By searching the net I came on his wonderful app. I tried to learn how to construct a search string for my problem but I can't get to manage it. So if anyone can help me.
So what I want to do is the following:

4 GROUPS:
Code:
Group 1: Artist
Group 2: ft. 2ndArtist or ft. 2ndArtist & 3ndArtist or 2ndArtist, 3rdArtist & 4thArtist
Group 3: Title
Group 4: (radio edit) or (original mix) (Tiesto mix)


Examples:

Artist ft. 2ndArtist - Title (radio mix 2010).mp3 -----> Artist - Title ft. 2ndArtist (radio mix 2010).mp3

Artist ft. 2ndArtist & 3rdArtist - Title (radio edit).mp3 -----> Artist - Title ft. 2ndArtist & 3rdArtist (radio edit).mp3

Artist ft. 2ndArtist, 3rdArtist & 4thArtist,...... - Title (Tiesto's mix).mp3 -----> Artist - Title ft. 2ndArtist, 3rdArtist & 4thArtist,...... (Tiesto's mix).mp3


So I just want to swap the 4 groups.
All groups can contain Alphanumeric characters and also 'dash' & 'comma'.

I really hope someone can help me.

Thanks!
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Sat Aug 28, 2010 6:23 pm    Post subject: Reply with quote

Nothing like starting off with a challenge on Saturday morning.
Try this:

1)
Copy the following into the custom renaming creator (do not copy the single quotes)

Row: 1
Search: '(?iE)(^.*?)(ft\.)(.*)-(.*?)(\(.*?\))'
Replace: '\1 - \4 - zzzabc \3 \5'
Row: 2
Search: '(?iE)(^.*?)(ft.*)-(.*)'
Replace: '\1- \3 - \2'
Row: 3
Search: 'zzzabc'
Replace: 'ft.'

2)
Press the scan button.

Hope that helps.

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
J-J



Joined: 28 Aug 2010
Posts: 4

PostPosted: Sat Aug 28, 2010 9:48 pm    Post subject: Reply with quote

admin wrote:
Nothing like starting off with a challenge on Saturday morning.
Try this:

1)
Copy the following into the custom renaming creator (do not copy the single quotes)

Row: 1
Search: '(?iE)(^.*?)(ft\.)(.*)-(.*?)(\(.*?\))'
Replace: '\1 - \4 - zzzabc \3 \5'
Row: 2
Search: '(?iE)(^.*?)(ft.*)-(.*)'
Replace: '\1- \3 - \2'
Row: 3
Search: 'zzzabc'
Replace: 'ft.'

2)
Press the scan button.

Hope that helps.

Peter.


Good morning! Smile Thanks for the quick reply. It works fine, except for names that contain 'ft' (like Daft Punk or Driftwood).
It cuts the Names in two, while those files shouldn't be in the search query because they're already correct.

Example

Driftwood - Freeloader (Lasgo remix).mp3 -----> Dri - Freeloader (Lasgo remix) - ftwood .mp3

Daft Punk - Harder Better Faster Stronger (Alive 2007).mp3 -----> Da - Harder Better Faster Stronger (Alive 2007) - ft Punk .mp3

For the rest everything looks fine and I know how to remove extra dashes and spaces.

Thanks
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Sat Aug 28, 2010 10:48 pm    Post subject: Reply with quote

Sorry - had one little mistake.

In the Row 2 search string, change:

(ft.*)

to

(ft\..*)

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
J-J



Joined: 28 Aug 2010
Posts: 4

PostPosted: Sat Aug 28, 2010 11:36 pm    Post subject: Reply with quote

Ok, that's solved.
I'm sorry for asking again for your help, apparently the program also includes file names like the example here:

Aaliyah - I Miss You (remix ft. Jay-Z).mp3 -----> Aaliyah - I Miss You (remix - Z) - ft. Jay.mp3

I think it's because of the bracket in the 2nd artist's name. I have the same problems with names like Ne-Yo, Tra-Knox,...

And would it maybe also be possible to put the part: ft. 2ndArtist between brackets? "(...) " Like this:

Milk Inc. - I Don't Care (ft. Silvy) (radio edit).mp3

I tried to put brackets in the strings, but I can't get them on the right place in the file name.

Sorry again for bothering you, I really appreciate it!

Grtz, Saïdou
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Sun Aug 29, 2010 3:22 am    Post subject: Reply with quote

Try this:

Row: 1
Search: '(?Ei)(.*\(.*)ft\.(.*\).*)'
Replace: '\1zzzxyz\2'
Row: 2
Search: '(?iE)(^.*?)(ft\.)(.*)-(.*?)(\(.*?\))'
Replace: '\1 - \4 (zzzabc \3) \5'
Row: 3
Search: '(?iE)(^.*?)(ft\..*)-(.*)'
Replace: '\1- \3 (\2)'
Row: 4
Search: 'zzzabc'
Replace: 'ft.'
Row: 5
Search: 'zzzxyz'
Replace: 'ft.'

Hope that helps!

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
J-J



Joined: 28 Aug 2010
Posts: 4

PostPosted: Sun Aug 29, 2010 12:47 pm    Post subject: Reply with quote

Well this did the job perfectly! Thanks very much for your effort!

Grtz Saïdou
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> General Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com