1534
1534
def fulltext_network_to_record(kind, bytes, line_end):
1535
1535
"""Convert a network fulltext record to record."""
1536
1536
meta_len, = struct.unpack('!L', bytes[line_end:line_end+4])
1538
1538
key, parents = bencode.bdecode_as_tuple(record_meta)
1542
return FulltextContentFactory(key, parents, None, fulltext)
1542
return [FulltextContentFactory(key, parents, None, fulltext)]
1545
1545
def _length_prefix(bytes):
1546
1546
return struct.pack('!L', len(bytes))
1550
1550
if record.parents is None: