IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Shifting any word based on dividers. Is it possible?
vvikkass
post Feb 12 2017, 17:18
Post #1


Member


Group: Full Members
Posts: 40
Joined: 13-October 16
Member No.: 22612
Mp3tag Version: 2.78



Have finally got clean mp3s after my yesterdays attempt to find solution, which the generous member here helped me get.

now I have mp3s in this format mainly,

01 - Artist 1 - Title (Original Mix) (feat. Artist 2).mp3

thats the case in all the files.

As you can see there are 2 dividers.

I would want to achieve all the mp3s like this please.

01 - Artist 1 feat. Artist 2 - Title (Original Mix).mp3

*the feat. artist is always inside ( & ).
*the feat. is always feat.
*Format of tracks is TrackNumber Space Divider Space Artist1 Space Divider Space TitleOfTrack
*Its not necessary that (feat. XXXX) is at the end of filename. It can be anywhere in between also.

Can it be achieved?

Thanks for reading.

Best regards,

This post has been edited by vvikkass: Feb 12 2017, 17:32
Go to the top of the page
 
+Quote Post
ohrenkino
post Feb 12 2017, 17:31
Post #2


Member


Group: Full Members
Posts: 9310
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.85d



QUOTE (vvikkass @ Feb 12 2017, 17:18) *
...now I have mp3s in this format mainly,

01 - Artist 1 - Title (Original Mix) (feat. Artist 2).mp3
thats the case in all the files.
...

Why do you fiddle about with the filenames?
Transfer the data to the tags first and then see e.g. this thread:
https://forums.mp3tag.de/index.php?showtopic=12513
It deals with a lot of occurances of featuring artists.


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
vvikkass
post Feb 12 2017, 18:19
Post #3


Member


Group: Full Members
Posts: 40
Joined: 13-October 16
Member No.: 22612
Mp3tag Version: 2.78



QUOTE (ohrenkino @ Feb 12 2017, 22:01) *
Why do you fiddle about with the filenames?
Transfer the data to the tags first and then see e.g. this thread:
https://forums.mp3tag.de/index.php?showtopic=12513
It deals with a lot of occurances of featuring artists.


Thanks. I read it. But I dont know what regex to use in my case.
Go to the top of the page
 
+Quote Post
ohrenkino
post Feb 12 2017, 18:46
Post #4


Member


Group: Full Members
Posts: 9310
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.85d



QUOTE (vvikkass @ Feb 12 2017, 18:19) *
Thanks. I read it. But I dont know what regex to use in my case.

Have you transferred the data to tags?


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
vvikkass
post Feb 12 2017, 19:04
Post #5


Member


Group: Full Members
Posts: 40
Joined: 13-October 16
Member No.: 22612
Mp3tag Version: 2.78



QUOTE (ohrenkino @ Feb 12 2017, 23:16) *
Have you transferred the data to tags?


Yes original tags looks like this,
Artist: Mark Jous
Title: Sandra (Courage & Evenfall Remix) (feat. Eufonic)

REGEX I am using is : $regexp(%artist%,$1,1) $mid(%title%,$strstr($lower(%title%),feat.),999) - $regexp(%title%,$1,1)

After result,
Artist: Mark Jous feat. Eufonic)
Title: Sandra (Courage & Evenfall Remix) (feat. Eufonic)

Desired,
Artist: Mark Jous feat. Eufonic
Title: Sandra (Courage & Evenfall Remix)

This post has been edited by vvikkass: Feb 12 2017, 19:05
Go to the top of the page
 
+Quote Post
ohrenkino
post Feb 12 2017, 19:08
Post #6


Member


Group: Full Members
Posts: 9310
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.85d



QUOTE (vvikkass @ Feb 12 2017, 19:04) *
Yes original tags looks like this,
Artist: Mark Jous
Title: Sandra (Courage & Evenfall Remix) (feat. Eufonic)
...

The regexp look overly complicated to me.
Check out the possibilities of a helper fields and guess value actions:
https://forums.mp3tag.de/index.php?s=&s...ost&p=94519


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
vvikkass
post Feb 12 2017, 19:13
Post #7


Member


Group: Full Members
Posts: 40
Joined: 13-October 16
Member No.: 22612
Mp3tag Version: 2.78



QUOTE (ohrenkino @ Feb 12 2017, 23:38) *
The regexp look overly complicated to me.
Check out the possibilities of a helper fields and guess value actions:
https://forums.mp3tag.de/index.php?s=&s...ost&p=94519


I couldnt get what this link says.

Regex I tried my best to arrange in this order. Sorry not that into technicality sire. Please suggest a solution as per my case.

EDIT :-

$regexp(%artist%,(.*),$1) $mid(%title%,$strstr($lower(%title%),feat.),999) - $regexp(%title%,(.*) \((.*)\),$1,1)

Worked.

Now the new tags are fine.

Earlier :
Artist : Mark Jous
Title : Sandra (feat. Eufonic)

Now after the regex it looks like,
Artist : Mark Jous feat. Eufonic)
Title : Sandra

Now I need to know the way to remove parenthesis after Eufonic that I am getting. Dont know how to remove that. What to add in the regex above?

This post has been edited by vvikkass: Feb 12 2017, 19:32
Go to the top of the page
 
+Quote Post
ohrenkino
post Feb 12 2017, 19:29
Post #8


Member


Group: Full Members
Posts: 9310
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.85d



QUOTE (vvikkass @ Feb 12 2017, 19:04) *
Yes original tags looks like this,
Artist: Mark Jous
Title: Sandra (Courage & Evenfall Remix) (feat. Eufonic)
...

Desired,
Artist: Mark Jous feat. Eufonic
Title: Sandra (Courage & Evenfall Remix)

Create an action of the type "Guess value" for %title%
Guessing pattern: %title% (feat. %featartist%)

Create an action of the type "Format value" for ARTIST
Format string: %artist% feat. %featartist%

Delete user-defined field FEATARTIST


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
vvikkass
post Feb 13 2017, 04:09
Post #9


Member


Group: Full Members
Posts: 40
Joined: 13-October 16
Member No.: 22612
Mp3tag Version: 2.78



QUOTE (ohrenkino @ Feb 12 2017, 23:59) *
Create an action of the type "Guess value" for %title%
Guessing pattern: %title% (feat. %featartist%)

Create an action of the type "Format value" for ARTIST
Format string: %artist% feat. %featartist%

Delete user-defined field FEATARTIST


GUESS code just adds (feat.) at the end of title. What am i doing wrong?
Go to the top of the page
 
+Quote Post
ohrenkino
post Feb 13 2017, 07:44
Post #10


Member


Group: Full Members
Posts: 9310
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.85d



QUOTE (vvikkass @ Feb 13 2017, 04:09) *
GUESS code just adds (feat.) at the end of title. What am i doing wrong?

I don't know.
Perhaps spelling, case?
It works with the given example.


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
vvikkass
post Feb 17 2017, 19:44
Post #11


Member


Group: Full Members
Posts: 40
Joined: 13-October 16
Member No.: 22612
Mp3tag Version: 2.78



QUOTE (ohrenkino @ Feb 13 2017, 12:14) *
I don't know.
Perhaps spelling, case?
It works with the given example.


Sorry for the late reply.

It worked!!

How to do with these kind of examples?

ARTIST = Dirtcaps
TRACK = Foreign Tongues (feat. Eleni Drake) (Acoustic Version)

DESIRED
ARTIST = Dirtcaps feat. Eleni Drake
TITLE = Foreign Tongues (Acoustic Version)

Thanks and best regards,
smile.gif
Go to the top of the page
 
+Quote Post
ohrenkino
post Feb 17 2017, 19:55
Post #12


Member


Group: Full Members
Posts: 9310
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.85d



QUOTE (vvikkass @ Feb 17 2017, 19:44) *
...
ARTIST = Dirtcaps
TRACK = Foreign Tongues (feat. Eleni Drake) (Acoustic Version)

DESIRED
ARTIST = Dirtcaps feat. Eleni Drake
TITLE = Foreign Tongues (Acoustic Version)
..

I would use an action of the type "Replace with regular expression" for TITLE
Search string: (.*) \(feat. (.*) (\(.*\))
Replace string: $1 $3 (feat. $3

Which should lead to

TRACK = Foreign Tongues (Acoustic Version) (feat. Eleni Drake)

and then the already working "Guess value" action.


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
vvikkass
post Feb 19 2017, 18:02
Post #13


Member


Group: Full Members
Posts: 40
Joined: 13-October 16
Member No.: 22612
Mp3tag Version: 2.78



QUOTE (ohrenkino @ Feb 18 2017, 00:25) *
I would use an action of the type "Replace with regular expression" for TITLE
Search string: (.*) \(feat. (.*) (\(.*\))
Replace string: $1 $3 (feat. $3

Which should lead to

TRACK = Foreign Tongues (Acoustic Version) (feat. Eleni Drake)

and then the already working "Guess value" action.


got the result after doing,
$1 $3 (feat. $2

Thanks a lot smile.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 12th December 2017 - 18:42