Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Truncating album titles in the middle (Read 1820 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Truncating album titles in the middle

Hi.

Is there a way when moving files into my desired file-tree format, to truncate titles in the middle? Sometimes I have very long album titles, and so I've set up Foobar to limit their length. However, this can be problematic when I have a multi-disc set with a long title, as the "[CD1] / [CD2]..." that distinguishes the disc is truncated, leaving me with two albums in the one folder.

For example, I've just sorted the Guided by Voices box set, and have two discs which I've named as follows:

Hardcore UFOs: Revelations, Epiphanies and Fast Food in the Western Hemisphere [CD3]
Hardcore UFOs: Revelations, Epiphanies and Fast Food in the Western Hemisphere [CD4]

When I move them using my current configuration, both CDs end up in the following single folder:

Hardcore UFOs: Revelations, Epiphanies and Fast Fo

Is there a way to configure it so they would be moved into something like the following folders:

Hardcore UFOs: Revelations, Epiphanies and Fast Fo...here [CD3]
Hardcore UFOs: Revelations, Epiphanies and Fast Fo...here [CD4]

I'm not technically savvy, and I'm sure my tag settings would drive you all to despair, so hopefully you'll be patient with me!

Thank!

Truncating album titles in the middle

Reply #1
The preferred way is to have a proper DISCNUMBER tag, then it would be all much easier.

However for the case when you have that in the ALBUM, at the end, in square brackets, for example this code would do that (separated for clarity, would be all on one line):
Code: [Select]
$puts(index,$strchr(%album%,'['))
$ifgreater($get(index),0,
$puts(name,$trim($left(%album%,$sub($get(index),1))))$puts(suffix,$substr(%album%,$get(index),999)),
$puts(name,%album%))
$iflonger($get(name),53,$left($get(name),50)...,$get(name))[ $get(suffix)]
Read the "Help > Title formatting help" document to understand what it does. Also you can use any of the previews to play with it more.
Full-quoting makes you scroll past the same junk over and over.

 

Truncating album titles in the middle

Reply #2
Thanks. I'll see how I get on with that. I know my tags are not standard, but it took just about all my brain power to work out how to mass tag in the first place! Also, I use a 2nd generation iPod and it helps organise things to have each disc with a separate title.

Cheers.