Accept params in any order for adapter_sugarquillnet

This commit is contained in:
Jim Miller 2021-02-13 10:51:19 -06:00
parent 5faa05abf6
commit e9bf516bb9

View file

@ -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):