Skip to content

Commit

Permalink
[sankaku] update invalid-token detection (fixes #1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Feb 11, 2021
1 parent b3cd970 commit 96a51ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/sankaku.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def _call(self, endpoint, params=None):
success = True
if not success:
code = data.get("code")
if code == "invalid_token":
if code and code.endswith(("invalid-token", "invalid_token")):
_authenticate_impl.invalidate(self.username)
continue
raise exception.StopExtraction(code)
Expand Down

0 comments on commit 96a51ff

Please sign in to comment.