'Convenience method to return metadata as a L{MetaInformation} object.'

def get_metadata(self, idx, index_is_id=False):

    aum = self.authors(idx, index_is_id=index_is_id)
    if aum:
        aum = [a.strip().replace('|', ',') for a in aum.split(',')]
    mi = MetaInformation(self.title(idx, index_is_id=index_is_id), aum)
    mi.author_sort = self.author_sort(idx, index_is_id=index_is_id)
    mi.comments = self.comments(idx, index_is_id=index_is_id)
    mi.publisher = self.publisher(idx, index_is_id=index_is_id)
    tags = self.tags(idx, index_is_id=index_is_id)
    if tags:
        mi.tags = [i.strip() for i in tags.split(',')]
    mi.series = self.series(idx, index_is_id=index_is_id)
    if mi.series:
        mi.series_index = self.series_index(idx, index_is_id=index_is_id)
    mi.rating = self.rating(idx, index_is_id=index_is_id)
    mi.isbn = self.isbn(idx, index_is_id=index_is_id)
    id = (idx if index_is_id else self.id(idx))
    mi.application_id = id
    return mi
