mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-05 23:56:08 +01:00
adapter_storiesonlinenet: Fix for /library/ -> /s/
This commit is contained in:
parent
463910cd54
commit
b953daa3c2
1 changed files with 5 additions and 1 deletions
|
|
@ -59,8 +59,12 @@ class StoriesOnlineNetAdapter(BaseSiteAdapter):
|
|||
title = ""
|
||||
if not m.group('chapter') and m.group('title'):
|
||||
title = m.group('title')
|
||||
path = m.group('path')
|
||||
## library allowed for storyInfo.php but doesn't work in normal story url
|
||||
if path == "library":
|
||||
path = "s"
|
||||
# normalized story URL.
|
||||
self._setURL('https://' + self.getSiteDomain() + '/'+m.group('path')+'/'+self.story.getMetadata('storyId')+title)
|
||||
self._setURL('https://' + self.getSiteDomain() + '/'+path+'/'+self.story.getMetadata('storyId')+title)
|
||||
else:
|
||||
raise exceptions.InvalidStoryURL(url,
|
||||
self.getSiteDomain(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue