From 2393a1a7a45fbf6cab87ec6540c8f51eaa6afe05 Mon Sep 17 00:00:00 2001 From: Naitri Doshi <97601490+naitridoshi@users.noreply.github.com> Date: Thu, 23 Oct 2025 16:32:21 +0530 Subject: [PATCH] Add Post.video_play_count property (#2595) --- instaloader/structures.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/instaloader/structures.py b/instaloader/structures.py index 29a80df..0999713 100644 --- a/instaloader/structures.py +++ b/instaloader/structures.py @@ -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.