Skip to content

Commit

Permalink
adapter_literotica: Fix category collection. #1058
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmXinu committed Apr 29, 2024
1 parent 1f42c18 commit 6d3d4d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fanficfare/adapters/adapter_literotica.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,11 @@ def extractChapterUrlsAndMetadata(self):
## don't have an intro or short desc.
descriptions = []
for i, chapterdesctag in enumerate(soup.select('p.br_rk')):
# get rid of category link
chapterdesctag.a.decompose()
# remove category link, but only temporarily
a = chapterdesctag.a.extract()
descriptions.append("%d. %s" % (i + 1, stripHTML(chapterdesctag)))
# now put it back--it's used below
chapterdesctag.append(a)
self.setDescription(authorurl,"<p>"+"</p>\n<p>".join(descriptions)+"</p>")

if isSingleStory:
Expand Down

0 comments on commit 6d3d4d1

Please sign in to comment.