1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[twitter] remove 'date_liked' (#3850, #4108, #4657)

Twitter's 'sortIndex' can't be used to calculate the timestamp
of when a Tweet was liked anymore.
This commit is contained in:
Mike Fährmann 2023-12-20 14:12:49 +01:00
parent a94f944148
commit a75f85a2c2
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -603,12 +603,6 @@ class TwitterLikesExtractor(TwitterExtractor):
def tweets(self):
return self.api.user_likes(self.user)
def _transform_tweet(self, tweet):
tdata = TwitterExtractor._transform_tweet(self, tweet)
tdata["date_liked"] = text.parse_timestamp(
(int(tweet["sortIndex"] or 0) >> 20) // 1000)
return tdata
class TwitterBookmarkExtractor(TwitterExtractor):
"""Extractor for bookmarked tweets"""