Skip to content

Commit

Permalink
added support for statsV2 (#1143)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekorian authored Jul 29, 2024
1 parent 4d7e0c0 commit dd208c1
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 dd208c1

Please sign in to comment.