Fix selector for xenforo2 stats, needed to pull word count estimate

This commit is contained in:
Moxie 2024-01-14 14:17:39 -07:00 committed by Jim Miller
parent f5dd6b90fc
commit 0a81bc7c6b

View file

@ -136,7 +136,7 @@ class BaseXenForo2ForumAdapter(BaseXenForoForumAdapter):
if img.has_attr('srcset'):
src = img['srcset']
self.setCoverImage(useurl,src)
stats = topsoup.find('span',class_='block-formSectionHeader-aligner')
stats = topsoup.find('span',class_='collapseTrigger collapseTrigger--block')
if stats:
m = re.search(r' (?P<words>[^ ]+) words\)',stripHTML(stats))
if m: