Add Post.video_play_count property (#2595)

This commit is contained in:
Naitri Doshi
2025-10-23 11:02:21 +00:00
committed by GitHub
parent 0bc9ab55dd
commit 2393a1a7a4
+9
View File
@@ -602,6 +602,15 @@ class Post:
return self._field('video_view_count')
return None
@property
def video_play_count(self) -> Optional[int]:
"""Play count of the video, or None.
.. versionadded:: 4.14.3"""
if self.is_video:
return self._field('video_play_count')
return None
@property
def video_duration(self) -> Optional[float]:
"""Duration of the video in seconds, or None.