This commit is contained in:
Kovid Goyal 2011-04-25 13:54:32 -06:00
parent e1c950b7bb
commit 31341a16aa

View File

@ -265,7 +265,7 @@ class OverDrive(Source):
if creators:
creators = creators.split(', ')
# if an exact match in a preferred format occurs
if ((author and creators[0] == author[0]) or (not author and not creators)) and od_title.lower() == title.lower() and int(formatid) in [1, 50, 410, 900] and thumbimage:
if ((author and creators and creators[0] == author[0]) or (not author and not creators)) and od_title.lower() == title.lower() and int(formatid) in [1, 50, 410, 900] and thumbimage:
return self.format_results(reserveid, od_title, subtitle, series, publisher,
creators, thumbimage, worldcatlink, formatid)
else: