IPB

Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

 
Reply to this topicStart new topic
How to replace a word present in multiple track titles?
khazaddum
post Apr 26 2014, 01:41
Post #1





Group: Members
Posts: 2
Joined: 26-April 14
Member No.: 115774



Hi! I am new here, my name is Leo.

I don't know the first thing about codes and scripts, but I've decided to use foobar since my collection is mostly lossless purchases and by converting them and adding to iTunes I'm losing space.

Lossless files typically come with a single FLAC or APE and a cuesheet, editing the tags in this cuesheet with something like Tag&Rename is impossible, but it can be done with foobar.

Now, in case there is a common word or phrase in every track Title in this cue sheet, for example: "Album X: Track 1, Album X: Track 2, Album X: Track 3", and I only wanted to select them all in foobar and do SOMETHING to remove the "Album X:" part from ALL TRACKS AT ONCE and leave instead "Track 1, Track 2, Track 3", what could I do?

I have digged through these forums in search for an answer, and I found a list of scripts that one can use with masstagger, but I have tried and tried to no result at all. Don't even know how to manage those scripts or how to apply them. I am lost and can find no answer.

Any ideas? Please. It'd be greatly appreciated.

*Forgot to make the topic title a question, sorry for any inconvenience!

This post has been edited by khazaddum: Apr 26 2014, 01:43
Go to the top of the page
+Quote Post
BenB
post Apr 26 2014, 03:31
Post #2





Group: Members
Posts: 728
Joined: 17-April 12
Member No.: 98921



There's more than one way to achieve it, but usually the easiest way is to use $replace(A,B,C). In your example, you could use:
CODE
$replace(%title%,Album X: ,)

Notice that "C" is nothing, effectively removing the text string "Album X: " from the title.

It isn't necessary to use Masstagger. You can use foobar's Properties dialog.

1. Select the tracks
2. Open the Properties dialog (Alt + Enter)
3. Right-click the field you wish to alter and click on Format from other fields... in the context menu
4. Enter the script in the Pattern box
5. Review the items in the Preview window to ensure there will be no unwanted changes
6. Click "OK" to close the "Format from other fields..." dialog if all is good, otherwise change the script or click "Cancel"
7. If you are altering more than one field, click "Apply" and repeat steps 3 through 7 as many times as necessary. If altering only one field, you can skip to step 8
8. Click "OK" to close the Properties dialog

This post has been edited by BenB: Apr 26 2014, 03:37
Go to the top of the page
+Quote Post
khazaddum
post Apr 26 2014, 04:35
Post #3





Group: Members
Posts: 2
Joined: 26-April 14
Member No.: 115774



That is exactly what I needed! Amazing! Thank you so much!


This post has been edited by khazaddum: Apr 26 2014, 04:57
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: 20th August 2014 - 12:52