Skip to content

Commit

Permalink
[twitter] ensure guest tokens are returned as string (#1665)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jul 1, 2021
1 parent 963d177 commit 5323c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ def _user_id_by_screen_name(self, screen_name):
def _guest_token(self):
root = "https://api.twitter.com"
endpoint = "/1.1/guest/activate.json"
return self._call(endpoint, None, root, "POST")["guest_token"]
return str(self._call(endpoint, None, root, "POST")["guest_token"])

def _call(self, endpoint, params, root=None, method="GET"):
if root is None:
Expand Down

0 comments on commit 5323c1c

Please sign in to comment.