mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-21 16:23:58 +01:00
Fix for literotica.
This commit is contained in:
parent
38d0a306ce
commit
7986fcbb97
1 changed files with 3 additions and 3 deletions
|
|
@ -158,7 +158,7 @@ class LiteroticaSiteAdapter(BaseSiteAdapter):
|
||||||
|
|
||||||
if storyLink is not None:
|
if storyLink is not None:
|
||||||
urlTr = storyLink.parent.parent
|
urlTr = storyLink.parent.parent
|
||||||
if urlTr['class'] == "sl":
|
if "sl" in urlTr['class']:
|
||||||
isSingleStory = False
|
isSingleStory = False
|
||||||
else:
|
else:
|
||||||
isSingleStory = True
|
isSingleStory = True
|
||||||
|
|
@ -175,7 +175,7 @@ class LiteroticaSiteAdapter(BaseSiteAdapter):
|
||||||
self.chapterUrls = [(storyLink.text, self.url)]
|
self.chapterUrls = [(storyLink.text, self.url)]
|
||||||
else:
|
else:
|
||||||
seriesTr = urlTr.previousSibling
|
seriesTr = urlTr.previousSibling
|
||||||
while seriesTr['class'] != 'ser-ttl':
|
while 'ser-ttl' not in seriesTr['class']:
|
||||||
seriesTr = seriesTr.previousSibling
|
seriesTr = seriesTr.previousSibling
|
||||||
m = re.match("^(?P<title>.*?):\s(?P<numChapters>\d+)\sPart\sSeries$", seriesTr.find("strong").text)
|
m = re.match("^(?P<title>.*?):\s(?P<numChapters>\d+)\sPart\sSeries$", seriesTr.find("strong").text)
|
||||||
self.story.setMetadata('title', m.group('title'))
|
self.story.setMetadata('title', m.group('title'))
|
||||||
|
|
@ -185,7 +185,7 @@ class LiteroticaSiteAdapter(BaseSiteAdapter):
|
||||||
self.chapterUrls = []
|
self.chapterUrls = []
|
||||||
dates = []
|
dates = []
|
||||||
descriptions = []
|
descriptions = []
|
||||||
while chapterTr is not None and chapterTr['class'] == 'sl':
|
while chapterTr is not None and 'sl' in chapterTr['class']:
|
||||||
descriptions.append(chapterTr.findAll("td")[1].text)
|
descriptions.append(chapterTr.findAll("td")[1].text)
|
||||||
chapterLink = chapterTr.find("td", "fc").find("a")
|
chapterLink = chapterTr.find("td", "fc").find("a")
|
||||||
if not chapterLink["href"].startswith('http'):
|
if not chapterLink["href"].startswith('http'):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue