Skip to content

Commit a4fb9e6

Browse files
committed
[furaffinity] fix 'submissions' results for new layout (#7759)
1 parent 8764f32 commit a4fb9e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gallery_dl/extractor/furaffinity.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,9 @@ def _pagination_submissions(self, url):
372372
for post_id in text.extract_iter(page, 'id="sid-', '"'):
373373
yield post_id
374374

375-
path = (text.extr(page, '<a class="button standard more" href="', '"') or # noqa 501
376-
text.extr(page, '<a class="more-half" href="', '"') or
377-
text.extr(page, '<a class="more" href="', '"'))
378-
if not path:
375+
if (pos := page.find(">Next 48</a>")) < 0 and \
376+
(pos := page.find(">&gt;&gt;&gt; Next 48 &gt;&gt;")) < 0:
379377
return
378+
379+
path = text.rextr(page, 'href="', '"', pos)
380380
url = self.root + text.unescape(path)

0 commit comments

Comments
 (0)