mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-06 08:52:55 +01:00
XF2: Allow extra / before threads in story URL.
This commit is contained in:
parent
e1d0bed52d
commit
47fd71c4b9
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ class BaseXenForo2ForumAdapter(BaseSiteAdapter):
|
||||||
|
|
||||||
def getSiteURLPattern(self):
|
def getSiteURLPattern(self):
|
||||||
## need to accept http and https still.
|
## need to accept http and https still.
|
||||||
return re.escape(self.getURLPrefix()).replace("https","https?")+r"(?P<tp>threads|posts)/(?P<title>.+\.)?(?P<id>\d+)/?[^#]*?(#?post-(?P<anchorpost>\d+))?$"
|
return re.escape(self.getURLPrefix()).replace("https","https?")+r"/?(?P<tp>threads|posts)/(?P<title>.+\.)?(?P<id>\d+)/?[^#]*?(#?post-(?P<anchorpost>\d+))?$"
|
||||||
|
|
||||||
## For adapters, especially base_xenforoforum to override. Make
|
## For adapters, especially base_xenforoforum to override. Make
|
||||||
## sure to return unchanged URL if it's NOT a chapter URL. This
|
## sure to return unchanged URL if it's NOT a chapter URL. This
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue