mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-04 18:40:51 +02:00
adapter_webnovelcom: normalize story URL.
This commit is contained in:
parent
5c281f6ade
commit
82ed9fb43f
1 changed files with 4 additions and 0 deletions
|
|
@ -82,6 +82,10 @@ class WWWWebNovelComAdapter(BaseSiteAdapter):
|
|||
# get storyId from url
|
||||
# https://www.webnovel.com/book/6831837102000205
|
||||
self.story.setMetadata('storyId', self.parsedUrl.path.split('/')[2])
|
||||
|
||||
# normalized story URL.
|
||||
self._setURL('https://' + self.getSiteDomain() + '/book/'+self.story.getMetadata('storyId'))
|
||||
|
||||
# Each adapter needs to have a unique site abbreviation.
|
||||
self.story.setMetadata('siteabbrev', 'wncom')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue