mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-03 14:43:29 +01:00
Handle QQ threads w/o threadmarks correctly.
This commit is contained in:
parent
b90ddd29a9
commit
56a60471d2
1 changed files with 3 additions and 1 deletions
|
|
@ -39,8 +39,11 @@ class QuestionablequestingComAdapter(BaseXenForoForumAdapter):
|
|||
## extracting threadmarks for chapters has diverged between SV/SB
|
||||
## and QQ enough to require some differentiation.
|
||||
def extract_threadmarks(self,souptag):
|
||||
threadmarks=[]
|
||||
# try threadmarks if no '#' in url
|
||||
navdiv = souptag.find('div',{'class':'threadmarkMenus'})
|
||||
if not navdiv:
|
||||
return threadmarks
|
||||
# was class=threadmarksTrigger. thread cats are currently
|
||||
# only OverlayTrigger <a>s in threadmarkMenus, but I wouldn't
|
||||
# be surprised if that changed. Don't want to do use just
|
||||
|
|
@ -49,7 +52,6 @@ class QuestionablequestingComAdapter(BaseXenForoForumAdapter):
|
|||
# weren't being stripped, but that's a different issue.
|
||||
threadmarksas = navdiv.find_all('a',{'class':'OverlayTrigger','href':re.compile('threadmarks.*category_id=')})
|
||||
## Loop on threadmark categories.
|
||||
threadmarks=[]
|
||||
tmcat_num=None
|
||||
|
||||
for threadmarksa in threadmarksas:
|
||||
|
|
|
|||
Loading…
Reference in a new issue