View Single Post
Old 11-20-2023, 12:40 PM   #9104
mrEd
Member
mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.
 
Posts: 17
Karma: 8634
Join Date: Oct 2020
Device: none
Very quick fix for the latest test version of the plugin:

Change line 90 of adapter_storiesonlinenet.py to
Code:
return r"https?://"+re.escape(self.getSiteDomain())+r"/(s|n|library)/(storyInfo.php\?id=)?(?P<id>\d+)(?P<chapter>:\d+)?(?P<title>/.+)?((;\d+)?$|(:i)?$)?"
Under line 225, add this:
Code:
chapters += soup.select('div#index-list a[href*="/n/"]')
There's a whole load of other places where it's looking for /s/, but this at least gets the chapters read correctly.

Last edited by mrEd; 11-20-2023 at 12:52 PM.
mrEd is offline   Reply With Quote