[furaffinity] fix 'submissions' results for new layout (#7759)

This commit is contained in:
Mike Fährmann
2025-06-30 19:05:19 +02:00
parent 8764f32ea7
commit a4fb9e6d33

View File

@@ -372,9 +372,9 @@ class FuraffinitySubmissionsExtractor(FuraffinityExtractor):
for post_id in text.extract_iter(page, 'id="sid-', '"'):
yield post_id
path = (text.extr(page, '<a class="button standard more" href="', '"') or # noqa 501
text.extr(page, '<a class="more-half" href="', '"') or
text.extr(page, '<a class="more" href="', '"'))
if not path:
if (pos := page.find(">Next 48</a>")) < 0 and \
(pos := page.find(">&gt;&gt;&gt; Next 48 &gt;&gt;")) < 0:
return
path = text.rextr(page, 'href="', '"', pos)
url = self.root + text.unescape(path)