Skip to content

Commit

Permalink
[twitter] add 'count' metadata field (#2741)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jul 10, 2022
1 parent 7c05058 commit b590774
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gallery_dl/extractor/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def items(self):

tdata = self._transform_tweet(tweet)
tdata.update(metadata)
tdata["count"] = len(files)
yield Message.Directory, tdata
for tdata["num"], file in enumerate(files, 1):
file.update(tdata)
Expand Down

0 comments on commit b590774

Please sign in to comment.