'Returns the torrent definition as a dictionary that follows the BT
spec for torrent files.
@return dict'

def get_metainfo(self):

    if self.metainfo_valid:
        return self.metainfo
    else:
        raise TorrentDefNotFinalizedException()
