mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-09 05:21:13 +02:00
Plugin only: In Skip mode, don't do initial metadata fetch if already matched in library. #1309
This commit is contained in:
parent
ecf005b145
commit
a3f3302312
1 changed files with 7 additions and 0 deletions
|
|
@ -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."))
|
||||
|
|
|
|||
Loading…
Reference in a new issue