adapter_literotica: add ...$ to story URL search for when /xyz-pt1 and /xyz are different stories.

This commit is contained in:
Jim Miller 2022-03-27 09:55:42 -05:00
parent a8c10bb017
commit 10a07fe4bf

View file

@ -162,7 +162,7 @@ class LiteroticaSiteAdapter(BaseSiteAdapter):
## site has started putting https back on again.
## site is now using language specific german.lit... etc on author pages.
## site is now back to using www.lit... etc on author pages.
search_url_re = r"https?://"+LANG_RE+r"(\.i)?\." + re.escape(self.getSiteDomain()) + self.url[self.url.index('/s/'):]
search_url_re = r"https?://"+LANG_RE+r"(\.i)?\." + re.escape(self.getSiteDomain()) + self.url[self.url.index('/s/'):]+r"$"
logger.debug(search_url_re)
storyLink = soupAuth.find('a', href=re.compile(search_url_re))
# storyLink = soupAuth.find('a', href=re.compile(r'.*literotica.com/s/'+re.escape(self.story.getMetadata('storyId')) ))