This commit is contained in:
Kovid Goyal 2008-12-30 21:26:15 -08:00
parent 5a0263bfd1
commit f4d145fce9

View File

@ -13,7 +13,7 @@ from calibre.ebooks.metadata import MetaInformation
from calibre.ebooks.chardet import xml_to_unicode from calibre.ebooks.chardet import xml_to_unicode
def get_metadata(stream): def get_metadata(stream):
src = xml_to_unicode(stream.read()) src = xml_to_unicode(stream.read())[0]
# Title # Title
title = None title = None