Skip to content

Commit

Permalink
make the code less ugly
Browse files Browse the repository at this point in the history
  • Loading branch information
ActuallyKit committed Jul 8, 2023
1 parent a437a34 commit c321c77
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gallery_dl/extractor/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1762,9 +1762,8 @@ def _pagination_users(self, endpoint, variables, path=None):
yield user
elif entry["entryId"].startswith("cursor-bottom-"):
cursor = entry["content"]["value"]
if (cursor.startswith("-1|")):
stop = True
if (cursor.startswith("0|")):
if cursor.startswith("-1|") or \
cursor.startswith("0|"):
stop = True

if stop or not cursor or not entry:
Expand Down

0 comments on commit c321c77

Please sign in to comment.