IPB

Welcome Guest ( Log In | Register )

> Notice!

Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.

Also make sure you've read the Forum Guidelines before posting in this forum.

 
Reply to this topicStart new topic
> Seperate the year field from the title
kasunt
post Nov 13 2011, 06:58
Post #1


Member


Group: Members
Posts: 4
Joined: 13-November 11
Member No.: 15567
Mp3tag Version: 2.49



Hi folks,

I want to remove the year from the "title" and copy it to the "year" field. How can I achieve this ?

For e.g.

Original Title: Nostalgia ft. Masta Ace (2007)
New Title: Nostalgia ft. Masta Ace
Year: 2007

Original Title: Check Yo Self (Remix) ft. Das Efx (2001)
New Title: Check Yo Self (Remix) ft. Das Efx
Year: 2001

Original Title: Give It 2 You (Remix) (1995)
New Title: Give It 2 You (Remix)
Year: 1995

Thanks in advance rolleyes.gif
Go to the top of the page
 
+Quote Post
DetlevD
post Nov 13 2011, 07:55
Post #2


Member


Group: Full Members
Posts: 4808
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.61d



QUOTE (kasunt @ Nov 13 2011, 06:58) *
... I want to remove the year from the "title" and copy it to the "year" field. How can I achieve this ?
For e.g.
Original Title: Nostalgia ft. Masta Ace (2007)
New Title: Nostalgia ft. Masta Ace
Year: 2007
...

Action: Guess values
Source format: %TITLE%
Guessing pattern: %TITLE% (%YEAR%)

DD.20111113.0755


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
kasunt
post Nov 13 2011, 08:04
Post #3


Member


Group: Members
Posts: 4
Joined: 13-November 11
Member No.: 15567
Mp3tag Version: 2.49



Thanks DetlevD

I tried to use Format value with,

Field: %YEAR%
Format String: $regexp(%TITLE%, '^(.+)\s\(([0-9]{4})\)$','$2')

It didnt seem to work though. Any reason why it could be ? Atleast i know there is an alternative now smile.gif

QUOTE (DetlevD @ Nov 13 2011, 19:55) *
Action: Guess values
Source format: %TITLE%
Guessing pattern: %TITLE% (%YEAR%)

DD.20111113.0755


Go to the top of the page
 
+Quote Post
kasunt
post Nov 13 2011, 08:09
Post #4


Member


Group: Members
Posts: 4
Joined: 13-November 11
Member No.: 15567
Mp3tag Version: 2.49



Also "Guess values" doesnt work when you have,

Test String (Remix) (1995)

It splits this to,

Title: Test String
Year: Remix) (1995
Go to the top of the page
 
+Quote Post
DetlevD
post Nov 13 2011, 09:39
Post #5


Member


Group: Full Members
Posts: 4808
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.61d



QUOTE (kasunt @ Nov 13 2011, 08:09) *
Also "Guess values" doesnt work when you have, Test String (Remix) (1995)
It splits this to,
Title: Test String
Year: Remix) (1995

Yes, you are right.

Try this ...
Action: Guess values
Source format: $regexp(%TITLE%,'^(.+)\s\((.+)\)$','$1===$2')
Guessing pattern: %TITLE%===%YEAR%

... or try this excentric innovative action group ...

Begin Action Group Test_2011#20111113.GuessValues

Action #1
Actiontype 7: Import tag fields (guess values)
Source format __: $reverse(%TITLE%)
Guessing pattern: )%YEAR%( %TITLE%

Action #2
Actiontype 5: Format value
Field ______: YEAR
Formatstring: $reverse(%YEAR%)

Action #3
Actiontype 5: Format value
Field ______: TITLE
Formatstring: $reverse(%TITLE%)

End Action Group Test_2011#20111113.GuessValues (3 Actions)


DD.20111113.0950.CET

This post has been edited by DetlevD: Nov 13 2011, 09:53


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
kasunt
post Nov 13 2011, 11:39
Post #6


Member


Group: Members
Posts: 4
Joined: 13-November 11
Member No.: 15567
Mp3tag Version: 2.49



Wow w00t.gif Thanks a bunch

Its working like a charm

A++++++++++ your answer

QUOTE (DetlevD @ Nov 13 2011, 21:39) *
Yes, you are right.

Try this ...
Action: Guess values
Source format: $regexp(%TITLE%,'^(.+)\s\((.+)\)$','$1===$2')
Guessing pattern: %TITLE%===%YEAR%

... or try this excentric innovative action group ...

Begin Action Group Test_2011#20111113.GuessValues

Action #1
Actiontype 7: Import tag fields (guess values)
Source format __: $reverse(%TITLE%)
Guessing pattern: )%YEAR%( %TITLE%

Action #2
Actiontype 5: Format value
Field ______: YEAR
Formatstring: $reverse(%YEAR%)

Action #3
Actiontype 5: Format value
Field ______: TITLE
Formatstring: $reverse(%TITLE%)

End Action Group Test_2011#20111113.GuessValues (3 Actions)


DD.20111113.0950.CET

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: 31st July 2014 - 14:30