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
> removing random string of character at the end of title
asd
post May 11 2017, 20:36
Post #1


Member


Group: Members
Posts: 2
Joined: 11-May 17
Member No.: 23415
Mp3tag Version: 2.81



I have been using MP3TAG while digitizing my music and it has been a huge help. The only problem I have come across is some files have a random string of letters and numbers at the end of the file and I can't figure out how to batch replace them. Is there an action that can do this or am I stuck editing manually for this particular problem?
Go to the top of the page
 
+Quote Post
ohrenkino
post May 11 2017, 21:23
Post #2


Member


Group: Full Members
Posts: 8748
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.83e



ZITAT(asd @ May 11 2017, 21:36) *
... or am I stuck editing manually for this particular problem?

I don't know as you do not tell us anything about the possiblities to identify this random string:
does it have a certain length? Then you can cut so and so many characters from the end.
Does it have a certain character that separates it from the useful information like e.g. an underscore?
So perhaps some concrete examples might help.


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
asd
post May 12 2017, 05:31
Post #3


Member


Group: Members
Posts: 2
Joined: 11-May 17
Member No.: 23415
Mp3tag Version: 2.81



The random string changes in length and is only separated from the rest of the title by a space but there are spaces needed in most titles.

the format of the names is "trackname xyZxacNg" "track name t7xgRY"

The only constant for the string is it has no spaces in itself and it is always at the end. The ability to remove the last word was all I could think of but I had no idea how to do that or if it was possible.

I will look up how to cut X characters from the end because that will cut way down on how many tracks I have to rename manually but it wont fix all of them. Thanks for your help.

Go to the top of the page
 
+Quote Post
ohrenkino
post May 12 2017, 06:38
Post #4


Member


Group: Full Members
Posts: 8748
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.83e



ZITAT(asd @ May 12 2017, 06:31) *
The random string changes in length and is only separated from the rest of the title by a space but there are spaces needed in most titles.

the format of the names is "trackname xyZxacNg" "track name t7xgRY"

The only constant for the string is it has no spaces in itself and it is always at the end. The ability to remove the last word was all I could think of but I had no idea how to do that or if it was possible.

I will look up how to cut X characters from the end because that will cut way down on how many tracks I have to rename manually but it wont fix all of them. Thanks for your help.

You could try an action of the type "Replace with regular expression" for TITLE
Search string: (.*) \w$
Replace string: $1

This assumes that the random string is a (one) word at the end.


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
DetlevD
post May 12 2017, 13:06
Post #5


Member


Group: Full Members
Posts: 6535
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.83e



QUOTE (asd @ May 12 2017, 06:31) *
The random string changes in length and is only separated from the rest of the title by a space ... the format of the names is "trackname xyZxacNg" ... to remove the last word ...


TITLE <== $regexp(%TITLE%,'(?#remove trailing word)^(.+?)\s+\S*$','$1')

DD.20170512.1406.CEST


--------------------
* 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

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: 23rd July 2017 - 13:55