Skip to content

Conversation

@naitridoshi
Copy link
Contributor

@naitridoshi naitridoshi commented Aug 28, 2025

Motivation

What this changes

  • Adds a new Post.video_play_count property:

    • Returns the value of video_play_count for videos (including Reels), otherwise None.
  • Keeps video_view_count untouched to avoid breaking existing users.

  • Docstring clarifies that video_play_count reflects the Reels “plays” number shown in the Instagram UI.

Why this helps

  • Consumers who need the number displayed on a Reel can read video_play_count instead of video_view_count, which may be missing or inaccurate for Reels.

Completeness

  • Backward compatible: no behavior change to video_view_count.

  • Small, self-contained change with type hints and docstrings.

  • Ready for review/merge. Happy to:

    • Add a brief note to the docs if you prefer.
    • Add tests around the new accessor if you want coverage here.

@Ashwin-kumar-0309
Copy link

bump, this needs to be merged!!

Co-authored-by: Alexander Graf <17130992+aandergr@users.noreply.github.com>
@aandergr aandergr merged commit 2393a1a into instaloader:master Oct 23, 2025
7 checks passed
@aandergr
Copy link
Member

Thanks!

denyshon added a commit to denyshon/instaloader that referenced this pull request Nov 2, 2025
Add Post.video_play_count property (instaloader#2595)
denyshon added a commit to denyshon/instaloader that referenced this pull request Nov 2, 2025
Add Post.video_play_count property (instaloader#2595)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

post.video_view_count prints 0

3 participants