From a3f3302312946da6182e05a32a21206a0f5dcd60 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Tue, 10 Feb 2026 08:30:02 -0600 Subject: [PATCH] Plugin only: In Skip mode, don't do initial metadata fetch if already matched in library. #1309 --- calibre-plugin/fff_plugin.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/calibre-plugin/fff_plugin.py b/calibre-plugin/fff_plugin.py index a4498666..dbc06d3f 100644 --- a/calibre-plugin/fff_plugin.py +++ b/calibre-plugin/fff_plugin.py @@ -1307,6 +1307,13 @@ class FanFicFarePlugin(InterfaceAction): if self.reject_url(merge,book): return + ## Check existing for SKIP mode. Again, redundant with below + ## for when story URL changes, but also kept here to avoid + ## network hit. + identicalbooks = self.do_id_search(url) + if collision == SKIP and identicalbooks: + raise NotGoingToDownload(_("Skipping duplicate story."),"list_remove.png") + # Dialogs should prevent this case now. if collision in (UPDATE,UPDATEALWAYS) and fileform != 'epub': raise NotGoingToDownload(_("Cannot update non-epub format."))