mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 18:53:21 +01:00
Twitter's 'sortIndex' can't be used to calculate the timestamp of when a Tweet was liked anymore.
This commit is contained in:
parent
a94f944148
commit
a75f85a2c2
@ -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"""
|
||||
|
Loading…
Reference in New Issue
Block a user