~ubuntu-branches/ubuntu/karmic/calibre/karmic

« back to all changes in this revision

Viewing changes to src/calibre/ebooks/metadata/isbndb.py

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-30 12:49:41 UTC
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20090730124941-kviipg9ypwgppulc
Tags: upstream-0.6.3+dfsg
ImportĀ upstreamĀ versionĀ 0.6.3+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    def __init__(self, book):
50
50
        MetaInformation.__init__(self, None, [])
51
51
 
52
 
        self.isbn = book['isbn']
 
52
        self.isbn = book.get('isbn13', book.get('isbn'))
53
53
        self.title = book.find('titlelong').string
54
54
        if not self.title:
55
55
            self.title = book.find('title').string
74
74
            self.comments = 'SUMMARY:\n'+summ.string
75
75
 
76
76
 
77
 
 
78
77
def build_isbn(base_url, opts):
79
78
    return base_url + 'index1=isbn&value1='+opts.isbn
80
79