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

def calibre.customize.builtins.HTMLMetadataReader.get_metadata (   self,
  stream,
  type 
)
Return 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`.
:return: A :class:`calibre.ebooks.metadata.MetaInformation` object

Reimplemented from calibre.customize.MetadataReaderPlugin.

Definition at line 152 of file builtins.py.

Referenced by calibre.gui2.convert.metadata.MetadataWidget.commit().

00152 
    def get_metadata(self, stream, ftype):
        from calibre.ebooks.metadata.html import get_metadata
        return get_metadata(stream)

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index