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

def calibre.customize.builtins.TXTMetadataReader.get_metadata (   self,
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 310 of file builtins.py.

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

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

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index