Logo Search packages:      
Sourcecode: calibre version File versions  Download package

def calibre.customize.builtins.MOBIMetadataWriter.set_metadata (   self,
  stream,
  mi,
  type 
)
Set metadata for the file represented by stream (a file like object
that supports reading). Raise an exception when there is an error
with the input data.
:param type: The type of file. Guaranteed to be one of the entries
in :attr:`file_types`.
:param mi: A :class:`calibre.ebooks.metadata.MetaInformation` object

Reimplemented from calibre.customize.MetadataWriterPlugin.

Definition at line 354 of file builtins.py.

Referenced by calibre.library.database.LibraryDatabase.add_books(), calibre.library.database2.LibraryDatabase2.add_books(), and calibre.library.database2.LibraryDatabase2.set_tags().

00354 
    def set_metadata(self, stream, mi, type):
        from calibre.ebooks.metadata.mobi import set_metadata
        set_metadata(stream, mi)

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index