Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 08-12-2011, 05:20 AM   #1
pgmariotti
Junior Member
pgmariotti began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2011
Device: Windows Phone 7
How to decompose content server metadata?

Hi Korvid.

I am downloading ebook data from the calibre library via the content server into an ebook reader I am developing.

I am using the new feature of Calibre to download the metadata.opf file, but the result I get is not easily understood in terms of fields and relative lengths.

What I get is as follows

[http://calibre-ebook.com]2010-02-16T00:00:00+00:00<div><p class="description">EDITORIAL REVIEW:</p>
<p class="description">The first interstellar starship, *John Glenn,* fled a Solar System populated by rogue AIs and machine/human hybrids, threatened by too much nanotechnology and rife with political dangers. The *John Glenn’*s crew intended to terraform the nearly pristine planet Ymir, in hopes of creating a utopian society that will limit intelligent technology. </p>
<p class="description">But by some miscalculation they have landed in another solar system, and extremely low on the antimatter needed to continue to Ymir, they must shape the nearby planet Harlequin’s moon, Selene, into a new, temporary home. Their only hope of ever reaching Ymir is to rebuild their store of antimatter through decades of terraforming the moon. </p>
<p class="description">Gabriel, the head terraformer, must lead this nearly impossible task, with all the wrong materials. His primary tools are the uneducated and nearly illiterate children of the original colonists, born and bred to build Harlequin’s moon into a virtual antimatter factory. With no concept of the future and with life defined as duty, one girl, Rachel Vanowen, begins to ask herself the question: what will become of the children of Selene once the terraforming is complete.</p>
<p class="description"> (20050916)</p></div>Tor Science Fiction9780765351296en-GBScience FictionFictionAdventureScience Fiction - GeneralFiction - Science FictionScience Fiction - High Tech


I have no problem understanding and extracting the Html for the editorial review, but I find it impossible to reconstruct the original Xml from

Tor Science Fiction9780765351296en-GBScience FictionFictionAdventureScience Fiction - GeneralFiction - Science FictionScience Fiction - High Tech

Can you please advise how I can obtain publisher, series, tags etc. from this output?

Paul G Mariotti
pgmariotti is offline   Reply With Quote
Old 08-12-2011, 12:38 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,461
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
THe content server returns XML. The program you are using to view the url (presumably firefox) is autoformatting ti to txt. Use wget or curl or something similar to see the raw xml.
kovidgoyal is offline   Reply With Quote
Old 08-12-2011, 01:14 PM   #3
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,473
Karma: 1053245
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
You can also try using view source in your web browser to see the raw XML.
user_none is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Content Server and Windows Home Server 2011 HughMcC Calibre 8 10-01-2014 08:26 AM
Metadata changes from Content Server? Starson17 Calibre 9 04-04-2011 08:54 AM
Editing metadata through content server? jrt3a Library Management 2 04-03-2011 11:36 PM
Need help - content server Sydney's Mom Calibre 0 08-28-2010 05:07 PM
Content Server thibaulthalpern Calibre 5 04-28-2009 01:56 PM


All times are GMT -4. The time now is 12:41 AM.


MobileRead.com is a privately owned, operated and funded community.