Welcome Guest

Pages: 1
Adding a single line of text to a series of lines in Yate
SnowdogPostDecember 5, 2023, 19:43
Pro
Posts: 361
Registered:
March 15, 2022, 17:12
Normal topicAdding a single line of text to a series of lines in Yate

Okay, this one will take you a while, I reckon...

(Who am I kidding, you'll do it during a coffee break!)

I have a 75 disc set & a 75 line text file with the album titles.

I also have a "generic text importer" that you wrote for me, but that will only paste a certain number of lines of text from the clipboard into a corresponding number of lines in the title field.

What I'd like to do here is for Yate to paste the album title of disc 01 into all the tracks for disc 01 in the album field, then disc 02 & so on...

In the first screenshot, you'll see that I already have the disc numbers included in the album field & that disc 01 has 15 tracks, so Yate would paste the first line of text (beginning 01, as seen in screenshot 2) into the first 15 lines of the album field, then take line 02 & add it to all the tracks of disc 02, etc. etc.

Is that possible?

Image
Image

SnowdogPostDecember 5, 2023, 19:49
Pro
Posts: 361
Registered:
March 15, 2022, 17:12
Normal topicAdding a single line of text to a series of lines in Yate

The first album, once I've gone in & tidied it up a bit, would end up looking like the following screenshot.

I'm not especially worried about ending up with double numbers or extra colons, I can tidy that up easily enough. There's even a word space after the number that's already in the album column, so just tacking the text from the clipboard onto the end of what's there would be perfectly adequate.

Image

2MR2PostDecember 5, 2023, 20:41
Avatar photo
Administrator
Posts: 2364
Registered:
August 23, 2012, 19:27
Normal topicAdding a single line of text to a series of lines in Yate

Can you please send the text file to support@2manyrobots.com

It'll be much easier than producing a test file

2MR2PostDecember 6, 2023, 11:42
Avatar photo
Administrator
Posts: 2364
Registered:
August 23, 2012, 19:27
Normal topicAdding a single line of text to a series of lines in Yate

Try the action at:

https://2manyrobots.com/actions/Import-Album-Field-to-Grouped-Tracks.zip

Only the line numbers at the end of the Album field are used. The line numbers in the text file are ignored ... as they are incremental from 1. (They are removed). The spacing in the results looks fine to me.

I could have simply based it on the Disc number but I'm not sure if it is set or not.

SnowdogPostDecember 6, 2023, 15:06
Pro
Posts: 361
Registered:
March 15, 2022, 17:12
Normal topicAdding a single line of text to a series of lines in Yate

That worked perfectly, thanks!

The discs are numbered. I had meant to mention it but forgot.

2MR2PostDecember 6, 2023, 19:21
Avatar photo
Administrator
Posts: 2364
Registered:
August 23, 2012, 19:27
Normal topicAdding a single line of text to a series of lines in Yate

Good and no problem 🙂

Pages: 1
Mingle Forum by Cartpauj | Version: 1.1.0beta | Page loaded in: 0.034 seconds.