Browse files

Books with no title found can always have another chance

  • Loading branch information...
1 parent 8d5ae77 commit 5b19ff81dcc09daddf00f9a0294e2ef84ac4783f @joemsak joemsak committed Jan 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tasks/book_titles.rake
View
2 lib/tasks/book_titles.rake
@@ -4,7 +4,7 @@ desc "find & store the book titles"
task :book_titles => :environment do
Book.all.each do |book|
api_url = "http://isbndb.com/api/books.xml?access_key=AIDOFPMK&index1=isbn&value1="
- if book.value.blank?
+ if book.value.blank? or book.value == "No title found"
api_url += book.key
Book.add_title open(api_url), book
end

0 comments on commit 5b19ff8

Please sign in to comment.