Skip to content

Commit

Permalink
added support for statsV2
Browse files Browse the repository at this point in the history
  • Loading branch information
ekorian committed Apr 25, 2024
1 parent 7101654 commit 617b2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TikTokApi/api/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def __extract_from_data(self) -> None:
pass

self.create_time = datetime.fromtimestamp(timestamp)
self.stats = data["stats"]
self.stats = data.get('statsV2') or data.get('stats')

author = data.get("author")
if isinstance(author, str):
Expand Down

0 comments on commit 617b2ff

Please sign in to comment.