From 2440f002fd0c76904eeb94070d75c88a09f1c6cc Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 7 Oct 2015 10:16:38 -0500 Subject: [PATCH] Fix for Overwrite mode. --- calibre-plugin/jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calibre-plugin/jobs.py b/calibre-plugin/jobs.py index 54639757..c5d3aa47 100644 --- a/calibre-plugin/jobs.py +++ b/calibre-plugin/jobs.py @@ -197,7 +197,7 @@ def do_download_for_worker(book,options,merge,notification=lambda x,y:x): if adapter.logfile: adapter.logfile = adapter.logfile.replace("span id","span notid") - if options['collision'] == OVERWRITE: + if options['collision'] == OVERWRITE and 'fileupdated' in book: lastupdated=story.getMetadataRaw('dateUpdated') fileupdated=book['fileupdated']