View Single Post
Old 06-08-2011, 12:45 AM   #151
capnm
Groupie
capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'
 
Posts: 156
Karma: 10001
Join Date: Feb 2011
Device: sony
1)
When I run this on a single epub, and it finds an isbn that matches the existing metadata I get this error message:

Job: "Extract ISBN for 1 books" failed with error:
Traceback (most recent call last):
File "site-packages\calibre\gui2\threaded_jobs.py", line 83, in start_work
File "calibre_plugins.extract_isbn.jobs", line 81, in extract_threaded
AttributeError: 'set' object has no attribute 'append'

Called with args: ([100], <calibre.library.database2.LibraryDatabase2 object at 0x05186170>) {u'notifications': <Queue.Queue instance at 0x11F8FF80>, u'abort': <threading._Event object at 0x0BD3C9D0>, u'log': <calibre.utils.logging.GUILog object at 0x0BD3C0B0>}



Not a big deal since the extract works ok ....


2)

It's not finding the ISBN in several epubs.
This doesn't seem to be yet another dash, they're using 2D dashes.
They are in the last couple of lines of the last htm if that might have something to do with it.

Two examples:

<p class="crt">eISBN: 978-0-375-89036-9</p>

<p class="crt">v3.0</p>
</div>
</body>
</html>


<p class="center"><strong>eISBN: 978-0-307-54803-0</strong></p>

<p class="center"><a class="pubhlink" href="http://www.vintagebooks.com">www.vintagebooks.com</a></p>

<p class="center">v3.0</p>
</div>
</body>
</html>



3)
A side question-
Is there an easy way to grab the ISBN (or other fields) from the embedded metadata?
The only things I've come up with are:
Reimport the epub or
Open in Sigil, edit metadata,cut/paste
both pretty cumbersome

Thanks!
capnm is offline   Reply With Quote