|08-12-2011, 05:20 AM||#1|
Join Date: Jul 2011
Device: Windows Phone 7
How to decompose content server metadata?
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
|08-12-2011, 12:38 PM||#2|
Creator of calibre
Join Date: Oct 2006
Location: Mumbai, India
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.
|08-12-2011, 01:14 PM||#3|
Sigil & calibre developer
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.
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Calibre Content Server and Windows Home Server 2011||HughMcC||Calibre||7||11-15-2013 07:10 PM|
|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|