INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Fill properties from file?  (Read 1109 times)

The Illest Villain

  • Regular Member
  • Recent member
  • *
  • Posts: 43
  • Change this by choosing profile
Fill properties from file?
« 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
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: Fill properties from file?
« Reply #1 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.

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

Just copy the script from here (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.

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20054
Re: Fill properties from file?
« Reply #2 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.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: Fill properties from file?
« Reply #3 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.

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20054
Re: Fill properties from file?
« Reply #4 on: April 03, 2006, 04:04:27 pm »

Been Playing Around





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.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: Fill properties from file?
« Reply #5 on: April 03, 2006, 04:07:37 pm »

Looks pretty  :)
(Meant as a compliment)

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20054
Re: Fill properties from file?
« Reply #6 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
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA
Pages: [1]   Go Up