Page 1 of 5

Import tag info (track titles) from .txt files?

Posted: Sat Mar 18, 2006 8:25 pm
by Guest
I tried searching the forum. I haven't found this specifically addressed, though from related inquiries I'm not optimistic.

I download live shows from the Live Music Archive and other servers. Often these files have no tag info, and typically the files are named something like "GD1977-05-08d1t05" so you can't infer any tag info from them.

The shows do come with a text file that lists all the tunes.

Is there away to import the titles from this file so I don't need to do a whole data entry project? This is particularly pertinent up front, as I have quite a few un-tagged shows in my system already. Once I"m up to date, doing it as a one-off would be no big deal.

has anyone maybe written a script for this??


That was me

Posted: Sat Mar 18, 2006 8:26 pm
by ResumeMan
Sorry, forgot to log in.

Posted: Sun Mar 19, 2006 12:03 am
by rovingcowboy
could you make it a m3u file for the list of title's and make the m3u's url lists all point to the same file.

you do know that an m3u playlist is just a txt file that lists the local url's to the songs.?

so what i am thinking is that you can list them as

title=#1 - hello dolly.
c:\music shows\radio\1930's\amos and andy\ show111222.mp3

not sure how the code for the title would be put in the list
i am not looking at the winamp list's now but they put it in above the url like i did.

that would get you a list of all the songs but they would all point to the same mp3 file.

Posted: Sun Mar 19, 2006 7:42 am
by Peke
Mainly this could be done.
Can you post Example of TXT File?

Posted: Sun Mar 19, 2006 7:48 am
by Steegy
Mainly this could be done.
If possible, a general solution that would be able to import different txt specifications (Trixmoto already made an importing script, but only for one specific output).

ADDITION: Ahaa Peke, I see you're a mod now...
ADDITION 2: Link to MPC txt importer:

Posted: Sun Mar 19, 2006 7:57 am
by Peke
:oops: I forgot that :oops:

Edit: I moved this Topic to Scripts And Components as it can be classified to that forum.

Posted: Sun Mar 19, 2006 5:13 pm
by ResumeMan
Peke wrote:Edit: I moved this Topic to Scripts And Components as it can be classified to that forum.
That would explain why I had a hard time finding the thread again this morning :)

Anyway, here is a typical info file. The problem is that the uploader creates their own files, so the format won't be consistent.
String Cheese Incident
Akumal Performing Arts Center
Akumal, Mexico

Source: DSBD
Lineage: DAT > WT2496 > CDWave > FLAC

Disk 1, Set 1:
1. Intro
2. MLT,
3. Missin' Me >
4. Sittin' on Top of the World,
5. Sand Dollar,
6. Born on the Wrong Planet,
7. Blue Bossa >
8. Smile >
9. Drums

Disk 2, Set 2:
1. Intro
2. Best Feeling¹,
3. San Jose²*,
4. Miss Brown's Teahouse,
5. Good Times Around the Bend,
6. Deep Elem Blues,

Disk 3, Set 2:
1. Little Hands >
2. So What >
3. Jam^ >
4. Black Clouds

Disk 4, Encores:
1. Elvis' Wild Ride,
2. Aiko Aiko³,
3. Texas

¹ with Keller Williams, without Nershi
² with Keller Williams
³ with Vince Welnick on keyboards

* with You Can Call Me Al verses
^ with Riders on the Storm teases

There were some long segues in the second set, forcing me to break the show into 4 CDs. You may want to adjust the breaks to fit it on to 3 CDs.
That said, it would probably be no big deal to use this file as a start to simply generate a list of songs so the file would simply be:
1. Intro
2. MLT,
3. Missin' Me >
4. Sittin' on Top of the World,
5. Sand Dollar,
6. Born on the Wrong Planet,
7. Blue Bossa >
8. Smile >
9. Drums
10. Intro
11. Best Feeling¹,
12. San Jose²*,

It would certainly be easier to do the deleting and renumbering (probably using Word) than to type in all the song names usnig the tag editor. Note that the song names don't usually have commas after them; it's just a legacy from the original place I got the data that I never fixed.

Thanks for the help!

Posted: Mon Mar 20, 2006 10:40 pm
by ResumeMan
Thinking on this a little more, it would also be easy enough to import the text file into Excel, if that would be easier for MM to communicate with...

Posted: Sat Mar 25, 2006 1:50 pm
by ResumeMan
I don't know if anyone had any interest in working on something like this. But if so, you might check out this utility which does exactly what I was talking about.

It works great, though i would be killer if it was integrated directly into MM.

The program's open source, so the source code might provide some assistance.


Posted: Thu May 18, 2006 6:47 am
by onkel_enno
I used mp3Tag for that, but I wanted to include in in MM to.

Here is the Script:

How you use it:
a. Create a File TagsFromTagList.vbs in MediaMonkey\Scripts\Auto and paste the code.
b. Restart MM

1. Sort the Tracks you want to tag in the right order (as they are listed in the text file).
2. Select them
3. Tools > Auto-Tag from Tag-List
4. Choose/Enter the Filename of the Tag-List
5. Enter the Mask like it is organized in the Tag-List (for example "<Track#>. <Title>"). You can also use "<Tabulator>" or "<Return>" for tabulator and line feed.
6. Hit OK and check at the MainTrackWindow if everything is correct.

Take care that the lines in the tag-list must be a multiple of the lines in the mask. Empty lines at the bottom of the tag-List should be deleted.

That's it.
I hope it workes for you guys too.

Code: Select all

New Code below
Have fun!

Posted: Fri May 19, 2006 1:39 am
by Guest
Thanks for creating this, I appreciate it.

Unfortunately I'm getting an error. I created a file that had just the filenames as "1. songname". I selected the tracks and opened the dialog. It requested a filename, and after I selected the file, an error popped up:
Error #438 Object doesn't support this property or method: 'SDB.Tools.Mask2UFText'
File (script name) Line 55 Column 3
Any thoughts?

Posted: Fri May 19, 2006 1:42 am
by ResumeMan
Ack, that was me above.

To clarify, it never got to the point of asking me for a mask.

Posted: Fri May 19, 2006 2:11 am
by onkel_enno
SDB.Tools.Mask2UFText was included in MM 2.5.3 first. Download the latest version and it should work.

Posted: Fri May 19, 2006 10:05 am
by ResumeMan
That did it, thanks :) I had no idea I wasn't running the latest.

Thanks for the help, I was hoping MM would be able to do this...

Posted: Sat May 20, 2006 5:08 pm
by strobrid
hi there. i was hoping to use this tool to import tag information from a text file as well. i followed your instructions above, installed 2.5.3 and pasted the following into my ini file, but i'm not seeing a menu item called "auto tag from tag list". am i doing something wrong?


DisplayName=Tags from Tag List
Description=Tags from Tag List