This commit is contained in:
Kovid Goyal 2011-10-11 17:26:51 +05:30
parent 96fdd1799f
commit 430f67c3f5

View File

@ -253,8 +253,11 @@ class PRST1(USBMS):
# Get Metadata We Want # Get Metadata We Want
lpath = book.lpath lpath = book.lpath
author = newmi.authors[0] try:
title = newmi.title author = newmi.authors[0]
except:
author = _('Unknown')
title = newmi.title or _('Unknown')
if lpath not in db_books: if lpath not in db_books:
query = ''' query = '''