Big Oven by Starson17 and estadao updated. Another fix for metadata download with null titles

This commit is contained in:
Kovid Goyal
2010-07-03 16:14:23 -06:00
parent e151e3a1d5
commit e019322f3c
3 changed files with 85 additions and 17 deletions
+7 -3
View File
@@ -351,9 +351,13 @@ def search(title=None, author=None, publisher=None, isbn=None, isbndb_key=None,
if len(results) > 1:
if not results[0].comments or len(results[0].comments) == 0:
for r in results[1:]:
if title.lower() == r.title[:len(title)].lower() and r.comments and len(r.comments):
results[0].comments = r.comments
break
try:
if title and title.lower() == r.title[:len(title)].lower() \
and r.comments and len(r.comments):
results[0].comments = r.comments
break
except:
pass
# Find a pubdate
pubdate = None
for r in results: