mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-01 03:11:18 +02:00
Allow /post/ story URLs with adapter_gravitytalescom.
This commit is contained in:
parent
0035f3a0f3
commit
eeeabff8f7
1 changed files with 5 additions and 1 deletions
|
|
@ -66,6 +66,10 @@ class GravityTalesComSiteAdapter(BaseSiteAdapter):
|
|||
# http://gravitytales.com/novel/a-dragons-curiosity
|
||||
self.story.setMetadata('storyId',self.parsedUrl.path.split('/')[2])
|
||||
|
||||
# normalized story URL.
|
||||
self._setURL("http://"+self.getSiteDomain()\
|
||||
+"/novel/"+self.story.getMetadata('storyId'))
|
||||
|
||||
# Each adapter needs to have a unique site abbreviation.
|
||||
self.story.setMetadata('siteabbrev','gtcom')
|
||||
|
||||
|
|
@ -87,7 +91,7 @@ class GravityTalesComSiteAdapter(BaseSiteAdapter):
|
|||
|
||||
####################################################################################################
|
||||
def getSiteURLPattern(self):
|
||||
return r"http://"+re.escape(self.getSiteDomain())+r"/novel/*(?P<id>[^/]+)"
|
||||
return r"http://"+re.escape(self.getSiteDomain())+r"/(novel|post)/*(?P<id>[^/]+)"
|
||||
|
||||
####################################################################################################
|
||||
## Getting the chapter list and the meta data, plus 'is adult' checking.
|
||||
|
|
|
|||
Loading…
Reference in a new issue