Index: lib/alexandria/book_providers.rb
===================================================================
--- lib/alexandria/book_providers.rb (revision 1085)
+++ lib/alexandria/book_providers.rb (working copy)
@@ -46,6 +46,9 @@
self.instance.notify_observers(:searching, factory.fullname) # new
results = factory.search(criterion, type)
+ # sanity check if at least one valid result is actually found
+ results.delete_if { |book, cover| ((!book) || (!cover)) }
+
if results.length == 0
self.instance.changed
self.instance.notify_observers(:not_found, factory.fullname) # new