Skip to content

Commit

Permalink
Fixed blacklist infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
UltimaHoarder committed May 29, 2021
1 parent 3c81177 commit cd72afd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion apis/onlyfans/classes/create_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ def get_lists_users(
link = endpoint_links(
identifier, global_limit=limit, global_offset=offset
).lists_users
session = self.session_manager.sessions[0]
results = self.session_manager.json_request(link)
if len(results) >= limit and not check:
results2 = self.get_lists_users(
Expand Down
2 changes: 1 addition & 1 deletion apis/onlyfans/classes/extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(
self.users = f"https://onlyfans.com/api2/v2/users/{identifier}"
self.subscriptions = f"https://onlyfans.com/api2/v2/subscriptions/subscribes?limit={global_limit}&offset={global_offset}&type=active"
self.lists = f"https://onlyfans.com/api2/v2/lists?limit=100&offset=0"
self.lists_users = f"https://onlyfans.com/api2/v2/lists/{identifier}/users?limit=100&offset=0&query="
self.lists_users = f"https://onlyfans.com/api2/v2/lists/{identifier}/users?limit={global_limit}&offset={global_offset}&query="
self.list_chats = f"https://onlyfans.com/api2/v2/chats?limit={global_limit}&offset={global_offset}&order=desc"
self.post_by_id = f"https://onlyfans.com/api2/v2/posts/{identifier}"
self.message_by_id = f"https://onlyfans.com/api2/v2/chats/{identifier}/messages?limit=10&offset=0&firstId={identifier2}&order=desc&skip_users=all&skip_users_dups=1"
Expand Down

0 comments on commit cd72afd

Please sign in to comment.