From 53ca251a49d05795e25fa5d9e2531536dbed29c0 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 22 Apr 2015 15:48:24 -0500 Subject: [PATCH] Add to FimF cover_exclusion_regexp and smaller cover when href not found. --- fanficfare/adapters/base_adapter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fanficfare/adapters/base_adapter.py b/fanficfare/adapters/base_adapter.py index 1dbb3df..46c3a62 100644 --- a/fanficfare/adapters/base_adapter.py +++ b/fanficfare/adapters/base_adapter.py @@ -481,6 +481,8 @@ class BaseSiteAdapter(Configurable): if self.getConfig('include_images'): return self.story.addImgUrl(storyurl,imgurl,self._fetchUrlRaw,cover=True, coverexclusion=self.getConfig('cover_exclusion_regexp')) + else: + return (None,None) # bs3 & bs4 are different here. # will move to a bs3 vs bs4 block if there's lots of changes.