From 6beb0bf2d369edb2e7efb381e70e77d4d3a4f2c8 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Mon, 11 Sep 2017 12:28:31 -0500 Subject: [PATCH] Fixes for QQ and AH changes. --- .../adapter_forumquestionablequestingcom.py | 36 +++++++++++++++---- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/fanficfare/adapters/adapter_forumquestionablequestingcom.py b/fanficfare/adapters/adapter_forumquestionablequestingcom.py index a756b086..f4dbdd87 100644 --- a/fanficfare/adapters/adapter_forumquestionablequestingcom.py +++ b/fanficfare/adapters/adapter_forumquestionablequestingcom.py @@ -15,6 +15,7 @@ # limitations under the License. # +import re from ..htmlcleanup import stripHTML from base_xenforoforum_adapter import BaseXenForoForumAdapter @@ -39,15 +40,38 @@ class QuestionablequestingComAdapter(BaseXenForoForumAdapter): ## and QQ enough to require some differentiation. def extract_threadmarks(self,souptag): # try threadmarks if no '#' in url - navdiv = souptag.find('div',{'class':'pageNavLinkGroup'}) - threadmarksa = navdiv.find('a',{'class':'threadmarksTrigger'}) + navdiv = souptag.find('div',{'class':'threadmarkMenus'}) + # was class=threadmarksTrigger. thread cats are currently + # only OverlayTrigger s in threadmarkMenus, but I wouldn't + # be surprised if that changed. Don't want to do use just + # href=re because there's more than one copy on the page; plus + # could be included in a post. Would be easier if