INTERACT FORUM

Please login or register.

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

Author Topic: How to Import?  (Read 2085 times)

sraymond

  • Guest
How to Import?
« on: September 05, 2003, 06:39:44 am »

I'm working on an easy way to import some media (JPEGs) that is available on the web.  It would be a fairly straightforward task to "suck down" the top page, including all subpages, and then use XSLT to transform the HTML into XML to convert the <a> into a <filename> and <description> element.

But then I'm sort of stuck.  How can I get an XML document into the MC library?

Please, please, please - if there's no way now, can we "pretty please" get a functionality to import into the library.  I notice that the mediafiles.jmd stores the backup data as partly text.  Suggestion:  Considering it's text nature, and the fact that it's zipped...  convert the backup structure to XML and allow an import to either "clear library first", "overright existing records", or "skip existing records".

This would go a LONG, LONG way in helping people bring more media into MC.  They'd just need to transform whatever they have to MediaML (or whatever else you'd like to call your XML dialect).

And before someone says it would just be easier to manually save each image to disk (while creating the right filename to describe it)...  I'm talking 10,000 images.

Thanks!

Scott-
Logged

sraymond

  • Guest
Re: How to Import?
« Reply #1 on: September 08, 2003, 11:23:44 am »

BUMP...

Are there any Java programmers out there that could take a simple XML document:
Quote
<?xml version="1.0"?>
<Art>
<Artist>Giovanni Antonio Canale, called Canaletto<Work>
  <Title>Rio dei Mendicanti: Looking South. 1723.
Oil on canvas. Ca'Rezzonico, Venice, Italy. More.</Title>
  <Filename>scanaletto1.jpg</Filename>
 </Work>
 <Work>
  <Title>Grand Canal: Looking East, from the Campo San Vio.
c. 1725. Oil on canvas. Gemauml;ldegalerie Alte Meister, Dresden, Germany.</Title>
  <Filename>scanaletto2.jpg</Filename>
 </Work>
 <Work>
  <Title>Grand Canal: Looking North-East from the Palazzo
Corner-Spinelli to the Rialto Bridge. c. 1725. Oil on canvas. Gemauml;ldegalerie
Alte Meister, Dresden, Germany.</Title>
  <Filename>scanaletto3.jpg</Filename>
 </Work>
 <Work>

and rename the filename based on the <Title>?

Is there a way to "trick" MC into doing this?

Will MC add this functionality in the near future?

Scott-
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: How to Import?
« Reply #2 on: September 08, 2003, 11:47:31 am »

You'll need to use MC's automation or the /Import command line directive to add files to the library.

XML import won't be done in 9.1 and always using XML for saving / loading would be much slower than the data format(s) we use now.
Logged
Matt Ashland, JRiver Media Center

sraymond

  • Guest
Re: How to Import?
« Reply #3 on: September 08, 2003, 07:36:48 pm »

Matt,

Does this mean that a plug-in could be written to import an XML file?

Scott-
Logged
Pages: [1]   Go Up