Skip to content

Commit

Permalink
[weibo] require numeric IDs to have length >= 10 (#4059)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed May 14, 2023
1 parent 56db930 commit 6b6bb4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/weibo.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _status_by_id(self, status_id):
return self.request(url).json()

def _user_id(self):
if self.user.isdecimal():
if len(self.user) >= 10 and self.user.isdecimal():
return self.user[-10:]
else:
url = "{}/ajax/profile/info?{}={}".format(
Expand Down

0 comments on commit 6b6bb4b

Please sign in to comment.