INTERACT FORUM

Please login or register.

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

Author Topic: Matt!: Plug-In And text Files, Help!  (Read 1669 times)

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Matt!: Plug-In And text Files, Help!
« on: April 17, 2005, 07:39:15 pm »

I was playing with some code and wanted to make a plug-in that worked with searching Text files for user imput strings.

The problem is i can't push text files into Playing Now.

How can i access text files and data fields for text files thru the SDK?

I would like to grab the file name, then do a search on that file name, with user imput strings and then create tags if the words was found in the text file.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re: Matt!: Plug-In And text Files, Help!
« Reply #1 on: April 18, 2005, 07:26:07 pm »

I guess that means no way it can be done using the MC SDK
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: Matt!: Plug-In And text Files, Help!
« Reply #2 on: April 19, 2005, 11:00:36 am »

You can get the text field from the database like this:

#define MF_TEXT  _T("Text")
MJFile->Get(MF_TEXT)

You can also let MC do the searches for you using the SDK:

MJ->Search(_T("[Text]=KingSparta"))

Hopefully that helps.
Logged
Matt Ashland, JRiver Media Center

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re: Matt!: Plug-In And text Files, Help!
« Reply #3 on: April 19, 2005, 11:30:15 am »

That really does not make things clear for me

i guess your talking about

Quote
MJFilesAutomation * Search(string strSearch)

Description: gets a MJFilesAutomation interface (see below) for the files matching the specified search
Parameters:

strSearch: the search string to use... can be any search accepted by Media Center

Return Value: MJFilesAutomation interface

that is the only thing i see for search in the SDK, Keep in mind i am working in VB6

and this is just to search for files, but i would still need to have them in playing now to make changes in the fields (like custom1 etc...)

and since MC currently does not move text files to playing now i can never access them to make changes in the MC database.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: Matt!: Plug-In And text Files, Help!
« Reply #4 on: April 19, 2005, 03:45:07 pm »

Do a search for:

[Media Type]=[Data]

or this:

[File Type]=[txt]

You'll get MJFileAutomation objects for the text files.  Then ask the MJFileAutomation for MF_TEXT to get the contents inside the file.

Are we getting warmer?
Logged
Matt Ashland, JRiver Media Center

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re: Matt!: Plug-In And text Files, Help!
« Reply #5 on: April 19, 2005, 06:00:55 pm »

well see, maybe


Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA
Pages: [1]   Go Up