mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Fix #662
This commit is contained in:
parent
595e0af269
commit
822bec157c
@ -9,10 +9,7 @@ from calibre.ebooks.pyPdf import PdfFileReader
|
||||
|
||||
def get_metadata(stream):
|
||||
""" Return metadata as a L{MetaInfo} object """
|
||||
if hasattr(stream, 'name'):
|
||||
title = os.path.splitext(os.path.basename(stream.name))[0]
|
||||
else:
|
||||
title = 'Unknown'
|
||||
title = 'Unknown'
|
||||
mi = MetaInformation(title, ['Unknown'])
|
||||
stream.seek(0)
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user