mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-02 11:51:49 +02:00
Add a 'shouldn't happen' error check for anthology merge.
This commit is contained in:
parent
545d7c5e8d
commit
f4b9431603
1 changed files with 6 additions and 3 deletions
|
|
@ -2617,9 +2617,12 @@ class FanFicFarePlugin(InterfaceAction):
|
|||
|
||||
# copy authors & tags.
|
||||
for k in ('author','tags'):
|
||||
for v in b[k]:
|
||||
if v not in book[k]:
|
||||
book[k].append(v)
|
||||
if k in b:
|
||||
for v in b[k]:
|
||||
if v not in book[k]:
|
||||
book[k].append(v)
|
||||
else:
|
||||
logger.debug("book: %s lacks %s"%(b['title'],k))
|
||||
|
||||
# fill from first of each if not already present:
|
||||
for k in ('pubdate', 'timestamp', 'updatedate'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue