mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 21:11:59 +02:00
Handle /post-# urls better in base_xenforoforum_adapter
This commit is contained in:
parent
aed2c5743f
commit
591bcc663b
1 changed files with 2 additions and 0 deletions
|
|
@ -649,6 +649,8 @@ class BaseXenForoForumAdapter(BaseSiteAdapter):
|
|||
postid = "post-"+postid.split('/')[-2]
|
||||
elif '#post-' in postid:
|
||||
postid = postid.split('#')[1]
|
||||
elif '/post-' in postid:
|
||||
postid = "post-"+postid.split('/post-')[-1]
|
||||
# logger.debug("get cache %s %s"%(postid,postid in self.post_cache))
|
||||
return self.post_cache.get(postid,None)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue