~ubuntu-branches/debian/sid/calibre/sid

« back to all changes in this revision

Viewing changes to src/calibre/ebooks/oeb/iterator/book.py

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-05-14 18:17:50 UTC
  • mfrom: (1.5.10)
  • Revision ID: package-import@ubuntu.com-20140514181750-xyrxqa47dbw0qfhu
Tags: 1.36.0+dfsg-1
* New upstream release:
  - Fixes editing of metadata (Closes: #741638)

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
                    return i
76
76
 
77
77
    def __enter__(self, processed=False, only_input_plugin=False,
78
 
            run_char_count=True, read_anchor_map=True,
 
78
            run_char_count=True, read_anchor_map=True, view_kepub=False,
79
79
            extract_embedded_fonts_for_qt=False):
80
80
        ''' Convert an ebook file into an exploded OEB book suitable for
81
81
        display in viewers/preprocessing etc. '''
85
85
        self.delete_on_exit = []
86
86
        self._tdir = TemporaryDirectory('_ebook_iter')
87
87
        self.base  = self._tdir.__enter__()
88
 
        plumber = Plumber(self.pathtoebook, self.base, self.log)
 
88
        plumber = Plumber(self.pathtoebook, self.base, self.log, view_kepub=view_kepub)
89
89
        plumber.setup_options()
90
90
        if self.pathtoebook.lower().endswith('.opf'):
91
91
            plumber.opts.dont_package = True