mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-01 11:24:35 +02:00
Fix for needing first post XF1/2.
This commit is contained in:
parent
1a5c8b02d0
commit
e288691d1c
1 changed files with 3 additions and 1 deletions
|
|
@ -636,11 +636,13 @@ class BaseXenForoForumAdapter(BaseSiteAdapter):
|
|||
url = url + origurl[origurl.index('#'):]
|
||||
logger.debug("chapter URL redirected to: %s"%url)
|
||||
|
||||
souptag = self.make_soup(data)
|
||||
topsoup = self.make_soup(data)
|
||||
# make_soup() loads cache with posts from that reader
|
||||
# page. looking for it in cache reuses code in
|
||||
# cache_posts that finds post tags.
|
||||
souptag = self.get_cache_post(url)
|
||||
if not souptag and '/threads/' in url: # first post uses /thread/ URL.
|
||||
souptag = self.get_first_post(topsoup)
|
||||
|
||||
# remove <div class="baseHtml noticeContent"> because it can
|
||||
# get confused for post content on first posts.
|
||||
|
|
|
|||
Loading…
Reference in a new issue