Skip to content

Commit

Permalink
[weibo] fix retweets (#2601)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jun 11, 2022
1 parent 34c428a commit 45c980d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gallery_dl/extractor/weibo.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ def items(self):

for status in self.statuses():

status["date"] = text.parse_datetime(
status["created_at"], "%a %b %d %H:%M:%S %z %Y")
yield Message.Directory, status

if self.retweets and "retweeted_status" in status:
if original_retweets:
status = status["retweeted_status"]
Expand All @@ -68,6 +64,10 @@ def items(self):
else:
files = self._files_from_status(status)

status["date"] = text.parse_datetime(
status["created_at"], "%a %b %d %H:%M:%S %z %Y")
yield Message.Directory, status

for num, file in enumerate(files, 1):
if file["url"].startswith("http:"):
file["url"] = "https:" + file["url"][5:]
Expand Down

0 comments on commit 45c980d

Please sign in to comment.