mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 12:36:11 +02:00
Add a warning output about minimum_threadmarks for XF.
This commit is contained in:
parent
9120504249
commit
80f50b298f
1 changed files with 4 additions and 1 deletions
|
|
@ -521,7 +521,10 @@ class BaseXenForoForumAdapter(BaseSiteAdapter):
|
|||
threadmarks = self.extract_threadmarks(souptag)
|
||||
souptag = self.get_first_post(topsoup)
|
||||
|
||||
if len(threadmarks) >= int(self.getConfig('minimum_threadmarks',2)):
|
||||
if len(threadmarks) < int(self.getConfig('minimum_threadmarks',2)):
|
||||
logger.info("!! Not using threadmark metadata: threadmarks(%s) < minimum_threadmarks(%s)"%(len(threadmarks), int(self.getConfig('minimum_threadmarks',2))))
|
||||
logger.info("!! Affects threadmark description, cover image, tags, etc.")
|
||||
else:
|
||||
# remember if reader link found--only applicable if using threadmarks.
|
||||
self.reader = topsoup.find('a',href=re.compile(r'\.'+self.story.getMetadata('storyId')+r"(/\d+)?/reader/?$")) is not None
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue