mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 10:42:34 +01:00
[inkbunny:following] fix infinite loop
happens when number of watched users is a multiple of 20
This commit is contained in:
parent
db9833c28a
commit
3b26748264
@ -246,14 +246,12 @@ class InkbunnyFollowingExtractor(InkbunnyExtractor):
|
||||
data = {"_extractor": InkbunnyUserExtractor}
|
||||
|
||||
while True:
|
||||
cnt = 0
|
||||
for user in text.extract_iter(
|
||||
page, '<a class="widget_userNameSmall" href="', '"',
|
||||
page.index('id="changethumboriginal_form"')):
|
||||
cnt += 1
|
||||
yield Message.Queue, self.root + user, data
|
||||
|
||||
if cnt < 20:
|
||||
if "<a title='next page' " not in page:
|
||||
return
|
||||
params["page"] += 1
|
||||
page = self.request(url, params=params).text
|
||||
|
Loading…
Reference in New Issue
Block a user