mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 12:36:11 +02:00
Accept params in any order for adapter_sugarquillnet
This commit is contained in:
parent
5faa05abf6
commit
e9bf516bb9
1 changed files with 6 additions and 0 deletions
|
|
@ -79,6 +79,12 @@ class SugarQuillNetAdapter(BaseSiteAdapter):
|
|||
def getSiteURLPattern(self):
|
||||
return re.escape("http://"+self.getSiteDomain()+"/read.php?storyid=")+r"\d+"
|
||||
|
||||
@classmethod
|
||||
def stripURLParameters(cls,url):
|
||||
## remove any parameters other than storyid. chapno=1 will be
|
||||
## added to canonical storyUrl
|
||||
return re.sub(r"\?.*(storyid=\d+).*$",r"?\1",url)
|
||||
|
||||
## Getting the chapter list and the meta data
|
||||
def extractChapterUrlsAndMetadata(self):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue