From 2e6ac070209deddbb6696806c975548edb37f487 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Tue, 29 Oct 2024 16:15:06 -0500 Subject: [PATCH] Fix for D/L from URL Mode Menu actions not honoring changed update mode in dialog. --- calibre-plugin/dialogs.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/calibre-plugin/dialogs.py b/calibre-plugin/dialogs.py index 310629d9..d9dfe58d 100644 --- a/calibre-plugin/dialogs.py +++ b/calibre-plugin/dialogs.py @@ -475,14 +475,15 @@ class AddNewDialog(SizePersistedDialog): self.collision.setCurrentIndex(i) def get_fff_options(self): - retval = { - 'fileform': unicode(self.fileform.currentText()), - 'collision': unicode(self.collision.currentText()), - 'updatemeta': self.updatemeta.isChecked(), - 'bgmeta': False, # self.bgmeta.isChecked(), - 'smarten_punctuation':self.prefs['smarten_punctuation'], - 'do_wordcount':self.prefs['do_wordcount'], - } + retval = dict(self.extraoptions) + retval.update( { + 'fileform': unicode(self.fileform.currentText()), + 'collision': unicode(self.collision.currentText()), + 'updatemeta': self.updatemeta.isChecked(), + 'bgmeta': False, # self.bgmeta.isChecked(), + 'smarten_punctuation':self.prefs['smarten_punctuation'], + 'do_wordcount':self.prefs['do_wordcount'], + } ) if self.merge: retval['fileform']=='epub'