[hentaifoundry:stories] fix 'src' & 'description' extraction (#8163)

This commit is contained in:
Mike Fährmann
2025-09-02 22:58:49 +02:00
parent e2ca64a636
commit 556af306f3
2 changed files with 45 additions and 2 deletions

View File

@@ -136,8 +136,9 @@ class HentaifoundryExtractor(Extractor):
">" + c + ":</span>", "<").replace(",", ""))
data["description"] = text.unescape(extr(
"class='storyDescript'>", "<div"))
path = extr('href="', '"')
"class='storyDescript'>", '<div class="storyRead">')).replace(
"\r\n", "\n")
path = extr('class="pdfLink" href="', '"')
data["src"] = self.root + path
data["index"] = text.parse_int(path.rsplit("/", 2)[1])
data["ratings"] = [text.unescape(r) for r in text.extract_iter(extr(