INTERACT FORUM

More => Old Versions => Media Center 11 (Development Ended) => Topic started by: The Illest Villain on April 02, 2006, 06:28:27 pm

Title: Fill properties from file?
Post by: The Illest Villain on April 02, 2006, 06:28:27 pm
Hi,

I have some mp3 i want to add comment to. The comments for these mp3 are in a txt file in the same folder for each album. Is there a way to generate the comments from a txt file?

Thanks
Title: Re: Fill properties from file?
Post by: Mr ChriZ on April 03, 2006, 03:59:58 am
How many of these have you got?
Is the name of the textfile always the same?

I don't think there is a way of doing this with Media Center as it stands.
Someone correct me if I'm wrong.

However I've written a utility called the C# Script Plugin.
It allows scripts to be run which allow a lot of flexability on things like this.

Scripts are little snippets of code that can be run on the fly while Media Centers running.

I've written a script which I think could do what you want.
If you want to try it you will have to install the C# Script Plugin available here. (http://yabb.jriver.com/interact/index.php?topic=31170.0)

You won't need to do any coding, as long as you can copy and paste your ok!

Just copy the script from here  (http://yabb.jriver.com/interact/index.php?topic=33020.msg226130#msg226130) (Everything below the word Script:) and paste into a new script within the plugin.
(Hit the new script button, a sample script is generated, replace that with the one above)

The script currently looks for a text file called ExtraInfo.txt.
Instructions are provided with the script to change this to what ever your text file
is called in your album directory.

The script currently places the information retrieved in the Comment field.

When your ready to run the script just press run script button.

The script is applied to all tracks in the playing now list.

If you decide to try this, and run into any difficultys just let me know!
Run it on a few sample tracks to confirm the desired effect before trying it on your entire collection.
Title: Re: Fill properties from file?
Post by: KingSparta on April 03, 2006, 11:37:36 am
I think he wants something built so he can import comments, and he does not need to do any C programming.
Title: Re: Fill properties from file?
Post by: Mr ChriZ on April 03, 2006, 12:09:07 pm
*Goes away and sulks...*  :P

Sorry I've been staring at too many lines of code recently!

I've moved things around, and provided some better explanations.
It's entirely optional, and free suports available from moi.
No coding required.
Title: Re: Fill properties from file?
Post by: KingSparta on April 03, 2006, 04:04:27 pm
Been Playing Around

(http://www.spartasoftware.com/MC-Plugins/DataImporter/DataImport-1.jpg)
(http://www.spartasoftware.com/MC-Plugins/DataImporter/DataImport-2.jpg)
(http://www.spartasoftware.com/MC-Plugins/DataImporter/DataImport-3.jpg)

I was thinking about letting the user to select a file like:

MyData.txt And import that data into the field

Or Program Generated File Name Like

Beatles - Help - Comment.txt

Include A Export Option To Dump All Or Some Of The Fields

[X] Comment
[X] Bitrate
[_] Image File

It would Export Something Like

Beatles, the - Help - Comment.txt
Beatles, the - Help - Bitrate.txt

Not sure if this would be usefull, but i guess it could be.
Title: Re: Fill properties from file?
Post by: Mr ChriZ on April 03, 2006, 04:07:37 pm
Looks pretty  :)
(Meant as a compliment)
Title: Re: Fill properties from file?
Post by: KingSparta on April 03, 2006, 04:34:26 pm
I am thinking this is something like what he\she wanted.

Other User Input Would Also Be Welcome