mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
RTF Input:Read metadata from RTF files when converting
This commit is contained in:
parent
18b9c916bb
commit
d547891422
@ -170,7 +170,7 @@ def generate_html(rtfpath, tdir):
|
||||
f.write(res)
|
||||
f.close()
|
||||
try:
|
||||
mi = get_metadata(open(rtfpath, 'rb'))
|
||||
mi = get_metadata(open(rtfpath, 'rb'), 'rtf')
|
||||
except:
|
||||
mi = MetaInformation(None, None)
|
||||
if not mi.title:
|
||||
|
Loading…
x
Reference in New Issue
Block a user