1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

[fapachi] ignore empty entries

This commit is contained in:
Mike Fährmann 2024-02-16 22:43:37 +01:00
parent c9efccc959
commit 770aec922d
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -58,8 +58,9 @@ class FapachiUserExtractor(Extractor):
page = self.request("{}/{}/page/{}".format(
self.root, self.user, self.num)).text
for post in text.extract_iter(page, 'model-media-prew">', ">"):
url = self.root + text.extr(post, '<a href="', '"')
yield Message.Queue, url, data
path = text.extr(post, '<a href="', '"')
if path:
yield Message.Queue, self.root + path, data
if '">Next page</a>' not in page:
return