MOBI metadata: When reading metadata from MOBI files only use the title in the PDB header if there is no long title in the EXTH header, as the book title. Fixes #875243 (Private bug)

This commit is contained in:
Kovid Goyal 2011-10-20 13:59:25 +05:30
parent 5049c859fb
commit 96cf45469e

View File

@ -66,12 +66,10 @@ class EXTHHeader(object):
# last update time # last update time
pass pass
elif id == 503: # Long title elif id == 503: # Long title
if not title or title == _('Unknown') or \ try:
'USER_CONTENT' in title or title.startswith('dtp_'): title = content.decode(codec)
try: except:
title = content.decode(codec) pass
except:
pass
#else: #else:
# print 'unknown record', id, repr(content) # print 'unknown record', id, repr(content)
if title: if title: