From 6e52a5b0965f70bc05098447e2ce8634a48e080b Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sat, 24 Dec 2011 09:40:23 -0600 Subject: [PATCH] Fix for 'Add New' collision. --- calibre-plugin/ffdl_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calibre-plugin/ffdl_plugin.py b/calibre-plugin/ffdl_plugin.py index 3215c63..5bf97cc 100644 --- a/calibre-plugin/ffdl_plugin.py +++ b/calibre-plugin/ffdl_plugin.py @@ -359,7 +359,7 @@ class FanFictionDownLoaderPlugin(InterfaceAction): identicalbooks = self.db.find_identical_books(mi) print(identicalbooks) addedcount=0 - if identicalbooks: + if identicalbooks and collision != ADDNEW: ## more than one match? add to first off the list. ## Shouldn't happen--we checked above. book_id = identicalbooks.pop()