check for image in exact match scenario

This commit is contained in:
Lee 2011-04-19 12:53:03 +08:00
parent acb26328c8
commit 112168f3f6

View File

@ -245,7 +245,7 @@ class OverDrive(Source):
else:
creators = creators.split(', ')
# if an exact match in a preferred format occurs
if (author and creators[0] == author[0]) and od_title == title and int(formatid) in [1, 50, 410, 900]:
if (author and creators[0] == author[0]) and od_title == title 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: