View Single Post
Old 08-24-2022, 11:32 AM   #7445
junni
Member
junni began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Oct 2021
Device: kobo libra 2
Quote:
Originally Posted by JimmXinu View Post
It should be very straight forward if you understand regular expressions.

I don't know that site, but if you assume that you don't need the optional index.php and the trailing .htm(l) novelfull.com uses:
Code:
    def getSiteURLPattern(self):
        return r"https?://%s/novel/(?P<story_id>[^/]+)(/.*)?" % re.escape(self.getSiteDomain())
Note that you will need change the self._setURL() in __init__() too.
Thanks Jim, got it to work thanks to you. Regular expressions are so confusing
junni is offline   Reply With Quote