From ab2eb447e248d047f6b53a7d2b5f0a45763b7409 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Mon, 22 Jun 2015 09:46:33 -0500 Subject: [PATCH] Exclude doReplacements on add_genre_when_multi_category call to getList('category'). --- fanficfare/story.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fanficfare/story.py b/fanficfare/story.py index 4086bd1..19c30ef 100644 --- a/fanficfare/story.py +++ b/fanficfare/story.py @@ -781,7 +781,11 @@ class Story(Configurable): retlist = filter( lambda x : x!=None and x!='' ,retlist) - if listname == 'genre' and self.getConfig('add_genre_when_multi_category') and len(self.getList('category')) > 1: + if listname == 'genre' and self.getConfig('add_genre_when_multi_category') and len(self.getList('category', + removeallentities=False, + # to avoid inf loops if genre/cat substs + doreplacements=False + )) > 1: retlist.append(self.getConfig('add_genre_when_multi_category')) # reorder ships so b/a and c/b/a become a/b and a/b/c. Only on '/',